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

Thomas Russ tar at isi.edu
Wed May 26 11:41:56 PDT 2010


On May 26, 2010, at 8:36 AM, Diego wrote:

> 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...

You need to include ALL of the *.jar files from the installations  
folder.

> 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:

This error message has nothing to do with missing classes.  It is an I/ 
O error, probably because you don't have the proper permission to  
delete the file in question.  Try saving the project to your own user  
directory.

> 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
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03




More information about the protege-discussion mailing list