Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] Configuring Protege-Frames API into Eclipse

Diego diegodfreitas at gmail.com
Wed May 26 08:36:18 PDT 2010


Hi,

I'm having some problems to configure the Protege-Frames API with Eclipse,

what do you usually do?

I've put in the classpath protege.jar that comes inside the Protege3.4.4
installations fold, it seems to work fine, but I cant use Project
p.save(Collection ...) it says that it doesn't find some classes...

code:

import edu.stanford.smi.protege.model.Project;

public class Main {
public static void main(String[] args) {
Collection<Object> errors = new ArrayList<Object>();
Project p = new Project(
"C:\\Program Files\\Protege_3.4.4\\examples\\newspaper\\newspaper.pprj",
errors);
p.save(errors);
}
}

error messages:

SEVERE: Error saving project. Classes file name: newspaper.pont. Instances
file name: newspaper.pins -- java.io.IOException: Delete of existing
C:\Program Files\Protege_3.4.4\examples\newspaper\newspaper.pont failed
at edu.stanford.smi.protege.util.FileUtilities.replaceFile(Unknown Source)
at edu.stanford.smi.protege.util.FileUtilities.makeTempFilePermanent(Unknown
Source)
at
edu.stanford.smi.protege.model.AbstractKnowledgeBaseFactory.makeTempFilePermanent(Unknown
Source)
at
edu.stanford.smi.protege.storage.clips.ClipsKnowledgeBaseFactory.saveKnowledgeBase(Unknown
Source)
at
edu.stanford.smi.protege.storage.clips.ClipsKnowledgeBaseFactory.saveKnowledgeBase(Unknown
Source)
at edu.stanford.smi.protege.model.Project.saveDomainKB(Unknown Source)
at edu.stanford.smi.protege.model.Project.save(Unknown Source)
at Main.main(Main.java:16)

Thank you very much


-- 
Diego Dantas de Freitas,  diegodfreitas at gmail.com
LSIS: Laboratoire des Sciences de l'Information et des Systèmes
Campus Scientifique de Saint-Jérôme à Marseille
Master 2 Recherche, Option D: Systèmes d'Information et Connaissance
Projet CLARA 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20100526/43d9a5e6/attachment.html>


More information about the protege-discussion mailing list