[Pellet-users] Unrecognized option: -Dpellet.configuration=file:pellet.properties

Alexander Nazarov a.nazarov at daxtra.com
Tue Jul 8 18:56:55 UTC 2008


Hi Mike,

Thank you for going through my messages.

I'll update my JVM.

Forward slash works OK (thanks to Martin as well).

Have a good evening,
Sasha


-----Original Message-----
From: Michael Smith [mailto:msmith at clarkparsia.com] 
Sent: Tuesday, July 08, 2008 7:52 PM
To: Alexander Nazarov
Cc: pellet-users at lists.owldl.com
Subject: Re: [Pellet-users]Unrecognized option:
-Dpellet.configuration=file:pellet.properties

On Tue, 2008-07-08 at 19:22 +0100, Alexander Nazarov wrote:

> [izoom at siberia pellet-1.5.2]$ java -version
> java version "1.4.2"
> gij (GNU libgcj) version 4.1.1 20061011 (Red Hat 4.1.1-30)
>  
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


Pellet uses Java 5 language features, so you are likely to run into
problems using a JVM (in this case GNU Java) that is only 1.4.2
compliant.


> [izoom at siberia pellet-1.5.2]$ ./pellet.sh -version
> Version : 1.5.2
> Released: May 1 2008
> 
> [izoom at siberia pellet-1.5.2]$ java
> -Dpellet.configuration=file:pellet.properties -jar lib\pellet.jar
> Failed to load Main-Class manifest attribute from libpellet.jar

The path separator in linux is typically a forward slash, not a back
slash.  I believe the shell is interpreting '\p' as an escaped p
character.  Try

?java -Dpellet.configuration=file:pellet.properties -jar lib/pellet.jar

> [izoom at siberia pellet-1.5.2]$ ./pellet.sh -s off -c TREE -if
>
/home/izoom/EZAccess/html/OntologyCandidate/AROntology/AROntologyCandidate.r
> df
> ERROR [main] (PelletOptions.java:172) - Ignoring invalid value (NONE) for
> the configuration option USE_CLASSIFICATION_MONITOR
> Input file:
>
file:/home/izoom/EZAccess/html/OntologyCandidate/AROntology/AROntologyCandid
> ate.rdf
> Load Error: java.lang.NoSuchMethodError: method
> java.util.Collections.emptySet with signature ()Ljava.util.Set; was not
> found.
>    at org.mindswap.pellet.Role.<init>(Role.java:71)
>    at org.mindswap.pellet.RBox.addAnnotationRole(RBox.java:179)
>    at
>
org.mindswap.pellet.KnowledgeBase.addAnnotationProperty(KnowledgeBase.java:9
> 90)
>    at
>
org.mindswap.pellet.jena.OWLLoader.defineAnnotationProperty(OWLLoader.java:1
> 147)
>    at org.mindswap.pellet.jena.OWLLoader.load(OWLLoader.java:1854)
>    at org.mindswap.pellet.jena.OWLReasoner.load(OWLReasoner.java:181)
>    at
> org.mindswap.pellet.jena.PelletInfGraph.prepare(PelletInfGraph.java:253)
>    at
> com.hp.hpl.jena.ontology.impl.OntModelImpl.prepare(OntModelImpl.java:2598)
>    at org.mindswap.pellet.Pellet.loadInput(Pellet.java:197)
>    at org.mindswap.pellet.Pellet.run(Pellet.java:455)
>    at org.mindswap.pellet.Pellet.main(Pellet.java:900)

I believe this stacktrace indicates that Pellet is using Java language
features that your version of GNU Java does not support.  I suggest
trying the Sun Java 5 or Sun Java 6 JVM for your platform.

-- 
Mike Smith

Clark & Parsia



More information about the Pellet-users mailing list