Search Mailing List Archives
[protege-owl] problem with loading protege plugins
tredmond at stanford.edu
Thu Apr 26 11:52:27 PDT 2007
The class that you are missing is a library from protege.jar. The
simple answer is to add more jar files to your classpath until you
don't get NoClassDefFoundErrors.
You should be aware that, as a plugin developer, you are trying to
run protege in a different way than the end user will run protege.
When the end user double-clicks on the Protege icon, he will run java
with a classpath which includes little more than protege.jar.
Protege will then find your plugin and load the appropriate jars from
your plugin. You will also need a plugin.properties file indicating
a dependence of your plugin on Protege owl and Protege will ensure
that the protege owl libraries are available to your plugin. So
protege would take care of all of your classpath problems for you.
For more information see
However it is useful to be able to run protege directly from a
development environment so here is a web page that gives some
So one thing to do is to start adding jars to your classpath until
On Apr 26, 2007, at 4:07 AM, Miroslav Hořejší wrote:
> I have a problem with loading protege plugins. I'm using Netbeans
> 5.5, I wonna use JenaOWLModel, so I imported protege-owl.jar from
> directory, where I installed protege 3.2.1, but when I ran my
> project, it threw me this exception:
> Exception in thread "main" java.lang.NoClassDefFoundError: edu/
> at java.lang.ClassLoader.defineClass1(Native Method)
> And in my source code is only this: JenaOWLModel owlModel =
> Could anybody help me?? I don't know, what should I do to run my
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/
More information about the protege-owl