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:

Barry Jackson b.x.jackson at world-net.co.nz
Sat Aug 18 15:37:24 PDT 2007


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20070819/68ac7514/attachment.html>


More information about the protege-owl mailing list