From: Joke P. <jok...@da...> - 2012-04-19 08:09:53
|
The zip file comes with a log4j-1.2.15.jar which does contain an /org/apache/log4j/PropertyConfigurator.class I did try various ways: java -classpath ".;log4j-1.2.15.jar;." -jar sword-common-1.1.jar java -classpath "log4j-1.2.15.jar;." -jar sword-common-1.1.jar java -classpath ".;log4j-1.2.15.jar" -jar sword-common-1.1.jar /usr/lib/jvm/java-1.6.0-sun-1.6.0.18/bin/java -jar sword-common-1.1.jar /usr/lib/jvm/java-1.6.0-sun-1.6.0.18/bin/java -classpath "log4j-1.2.15.jar" -jar sword-common-1.1.jar but the stack trace is persistent On 18/04/2012 08:23, "LEWIS Stuart" <Stu...@ed...> wrote: Hi Joke, The stack trace suggests that you need to add the log4j logging library jar file to your classpath. http://logging.apache.org/log4j/1.2/download.html Thanks, Stuart From: Joke Pol [mailto:jok...@da...] Sent: 17 April 2012 12:36 To: swo...@li... Subject: [sword-app-tech] Demo client NoClassDefFoundError PropertyConfigurator I downloaded sword-client-1.1.zip from http://sourceforge.net/projects/sword-app/files/SWORD%20Java%20Library/ Went to the unzipped directory and launched swordclient.sh I have been playing with the classpath but keep getting the stack trace below. Anny suggestion what I might have overlooked? Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator at org.purl.sword.client.ClientFactory.<init>(ClientFactory.java:56) at org.purl.sword.client.ClientFactory.main(ClientFactory.java:183) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.PropertyConfigurator 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) ... 2 more With kind regards, Joke Pol Developer +31(0)6 201 055 18 jok...@da... Data Archiving and Networked Services (DANS) DANS offers durable access to digital research data. Please visit http://www.dans.knaw.nl for more information and contact details. DANS is an institute of KNAW and NWO. |