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" <stuart.le...@ed.ac.uk> 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:joke....@dans.knaw.nl]
Sent: 17 April 2012 12:36
To: sword-app-tech@lists.sourceforge.net
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
joke....@dans.knaw.nl

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.





------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to