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-owl] API Programming: NoClassDefFoundError:

Samson Tu swt at stanford.edu
Sun Aug 19 21:49:07 PDT 2007


Put all jar files in your protege installation directory and 
plugins/edu.stanford.smi.protegex.owl/ on your class path.

samson


Barry Jackson wrote:
> Hi
> 
> When working through the Protege-OWL API Programmer's Guide I find I am 
> unable to ge past first base, ie. output: "Class URI: 
> http://hello.com#World". 
> 
> I am using NetBeans on a MacOSX.  
> 
> I have placed protege.jar on the Classpath, this is evidenced by 
> importing as a test import: import edu.stanford.smi.protege.model.Cls 
> and no error is reported.
> 
> However, when I try to import from 
> edu.stanford.smi.protegex.model.OWLModel (In fact all protegex stuff), I 
> get an error reported. I can remove this error by placing 
> protege-OWL.jar on the CLASSPATH. Is this the correct thing to do?
> 
> I can then import without error, in fact these are 'suggested' by 
> NetBeans as it makes reference to the library:
> import edu.stanford.protege.smi.owl.model.OWL.OWLModel;
> import edu.stanford.smi.protegex.owl.model.OWLNamedClass;
> import edu.stanford.smi.protegex.owl.ProtegeOWL;
> 
> I now have no obvious errors. However, when I either run or bulld the 
> program I get the following message:
> 
> init:
> deps-jar:
> Compiling 1 source file to 
> /Applications/Protege_3.3_beta/demonstrations/build/classes
> compile:
> run:
> Warning: Cannot set console log debugger handler.
> Error adding file handler to logger
> Warning: IO exception getting logger. null
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/jgoodies/looks/plastic/PlasticTheme
>         at edu.stanford.smi.protege.model.Project.<clinit>(Unknown Source)
>         at 
> edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModel(Unknown Source)
>         at 
> com.demo.application.OWLAPIDemoApplication.main(OWLAPIDemoApplication.java:22)
> Java Result: 1
> BUILD SUCCESSFUL (total time: 0 seconds)
> 
> Your help would be appreciated.
> 
> Barry
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
> 
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 




More information about the protege-owl mailing list