Am 07.05.2012 09:45, schrieb Paolo Castagna:
> Hi Peter
>
> Peter Jungen wrote:
>> The build goes smooth but then, but running
>>
>> java -cp fuseki-server.jar larq.larqbuilder [..]
>>
>> throws an exception java.lang.NoClassDefFoundError
>>
>> There seems to be an dependency problem, the patch, adds lucene 3.5.0
>> to the .classpath file, while the repository loads lucene 3.6.0 as
>> included in fuseki; then there is a classpath to
>> lucene-core-3.6.0-sources.jar and
>> jena-larq-1.0.0-incubating-sources.jar, but no file on the repository.
>
> Here is what I do:
>
> svn co https://svn.apache.org/repos/asf/incubator/jena/Jena2/Fuseki/trunk/
> fuseki
> cd fuseki/
> wget
> https://issues.apache.org/jira/secure/attachment/12525638/JENA-63-Fuseki-r1334045.patch
> patch -p0 < JENA-63-Fuseki-r1334045.patch
> mvn package
> java -cp target/jena-fuseki-0.2.2-incubating-SNAPSHOT-server.jar
> larq.larqbuilder --help
>
>
> larqbuilder --larq DIR [--subjects] [--allow-duplicates] --data RDF
> LARQ
> --larq=DIR Index directory
> --subjects Index literals to subject nodes
> --allow-duplicates Don't try to avoid duplicate literals (i.e.
> faster for bulk indexing)
> Symbol definition
> --set Set a configuration symbol to a value
> --strict Operate in strict SPARQL mode (no extensions of
> any kind)
> --desc= Assembler description file
> General
> -v --verbose Verbose
> -q --quiet Run with minimal output
> --debug Output information for debugging
> --help
> --version Version information
>
> No problem or NoClassDefFoundError.
>
> Please, can you try the above commands and let me know if you still have
> problems?
>
> Paolo
>
Hi Paolo,
I'm sorry, this exact steps lead me to the same error as before, when
running larq I print it in full:
-----------
Get Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/lucene/store/Directory
at larq.larqbuilder.<init>(larqbuilder.java:40)
at larq.larqbuilder.main(larqbuilder.java:50)
Caused by: java.lang.ClassNotFoundException:
org.apache.lucene.store.Directory
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
-----------
The packaging was successful, but the class seems not to be available
during runtime by some reason..
Regards
Peter