how to read SKOS file in java

344 views
Skip to first unread message

ASIF ALI

unread,
Apr 18, 2012, 12:51:26 AM4/18/12
to skos-dev
hi!
i have run the example1.java on this page http://skosapi.sourceforge.net/documentation.html
and i have got the following exception.
can u please help me to get rid of this.
i'll be very thankful to you all.


Exception in thread "main" java.lang.NoClassDefFoundError: org/
semanticweb/owl/model/OWLOntologyStorageException
at Example2.main(Example2.java:55)
Caused by: java.lang.ClassNotFoundException:
org.semanticweb.owl.model.OWLOntologyStorageException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more
Java Result: 1

Simon Jupp

unread,
Apr 18, 2012, 4:57:13 AM4/18/12
to skos...@googlegroups.com
Hi,

Do you have the OWL API on your classpath?

If you are using the stable release of the SKOS API you need an older
version of the OWL API from [1]

If you are using the latest SKOS API (version 3) then you will need
the latest OWL API from [2].

Let me know if that fixes your problem.
Cheers
Simon

1 - http://owlapi.sourceforge.net/2.x.x/releases.html
2 - http://owlapi.sourceforge.net/download.html

> --
> You received this message because you are subscribed to the Google Groups "skos-dev" group.
> To post to this group, send email to skos...@googlegroups.com.
> To unsubscribe from this group, send email to skos-dev+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/skos-dev?hl=en.
>

ASIF ALI

unread,
Apr 18, 2012, 9:36:31 AM4/18/12
to skos...@googlegroups.com
thank you so much, i use the older version of owlapi and skos and it works :-) :-)
i am so happy....
--
ASSSSSSSSSSSSIIIIIIIIIIFFFFFFFFFF
Reply all
Reply to author
Forward
0 new messages