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] Some .jar missing in compiling ? (hello world example)

Cleiton Reis cperes.reis at gmail.com
Tue Sep 26 06:44:37 PDT 2006


All Right That's it  Thanks a lot !    protege.jar  missing !

However after compile whitout errors, when run the application I got
the follow :

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Exception in thread "main" java.lang.NoClassDefFoundError:
OWLAPIDemoApplication (wrong name:
com/demo/application/OWLAPIDemoApplication)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

The creation of a package is necessary ?

commenting the line :

package com.demo.application;

compiling and running again give this :

Exception in thread "main" java.lang.NoClassDefFoundError:
edu/stanford/smi/protegex/owl/model/OWLModel



And thanks again !




2006/9/25, Olivier Dameron <olivier.dameron at univ-rennes1.fr>:
> Quoting Cleiton Reis <cperes.reis at gmail.com>:
> ...
> > OWLAPIDemoApplication.java:14: cannot access
> > edu.stanford.smi.protege.model.DefaultKnowledgeBase
> > file edu/stanford/smi/protege/model/DefaultKnowledgeBase.class not found
> >             OWLModel owlModel = ProtegeOWL.createJenaOWLModel();
>
> > CLASSPATH="./:/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/antlr.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/arq.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/commons-lang-2.0.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/commons-logging.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/concurrent.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/edtftpj-1.5.2.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/ekitspell.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/icu4j.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/jakarta-oro-2.0.5.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/jcalendar.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/jena.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/junit.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/kazuki.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/log4j.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/owlsyntax.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/protege-owl.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/rdf-api-2001-01-19.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/swrl-jess-bridge.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/xercesImpl.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/xml-apis.jar:
> > /usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/xmlParserAPIs.jar"
>
> It looks like your classpath is missing:
> /usr/local/Protege-3.2/Protege.jar
> This jar file contains all the "default" protege classes... from which
> inherit most of the classes from the owl plugin.
>
> Hope this helps
> Olivier
>
>



More information about the protege-owl mailing list