perfsonar-user - Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Rade Martinović <>
- To: "Rodrigo Dlugokenski" <>, <>
- Subject: Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar
- Date: Wed, 2 Jun 2010 16:17:01 +0200
- Importance: Normal
- Organization: RCUB
Hello Rodrigo!
Although I am not responsible for SSHTELNET service I would
like to point out on one thing concerning running Java apps.
The thing is when you ran:
java -cp
lib/commons-logging-1.0.4.jar:lib/jdom-1.0b8.jar:lib/wss4j-1.5.1.jar -jar
SSHTELNET_configurator.jar sshtelnet.xml
actually the classpath is getting read from
META_INF/MANIFEST.MF file inside of the SSHTELNET_configurator.jar because
you have used -jar switch. That means that -cp switch gets ignored. In order to
use classpath provided with command line you should: a) not use -jar switch; 2)
provide main class entry point to the application.
The best thing you can do is to extract SSHTELNET_configurator.jar with unzip utility,
look at META_INF_MANIFEST.MF file to see what other libraries are getting called
in Class-Path section and what is Main-Class entry point. If commons-logging-1.0.4.jar and jdom-1.0b8.jar entries
are present there you should see in what directories are they are being searched
for.
org.jdom classes should now be available to the application,
but I think that this is far from convenient and effort spent is certainly
not small.
Best regards,
-- Rade Martinović, M.Sc.E.E Software engineer Belgrade University Computer Center Kumanovska b.b. 11000 Beograd Serbia Tel: +381-11-3031258 Fax: +381-11-3031259 Email: Internet: http://www.rcub.bg.ac.rs From:
Sent: Tuesday, 01 June, 2010 14:54
To:
Subject: Re: [perfsonar-user] Prerequisites for
SSHTELNET_configurator.jar With classpath explicited, I had the same error:
arch-mp1 Configuration_Tool # java -cp
lib/commons-logging-1.0.4.jar:lib/jdom-1.0b8.jar:lib/wss4j-1.5.1.jar -jar
SSHTELNET_configurator.jar sshtelnet.xml
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jdom/IllegalAddException
Caused by: java.lang.ClassNotFoundException:
org.jdom.IllegalAddException
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)
Could not find the main class: ServicePropertiesConfigurator. Program will
exit. I'm thinking if is not another requisite, a indirect one (ex: jdom needs
another libs?)
Thanks for the quick response!
____________________________________________ Rodrigo Dlugokenski Research Assistant/Network Engineering and Computer Science Undergrad Student Informatics Institute of Federal University of Rio Grande do Sul - Brazil Academic e-mail: Professional e-mail: 2010/6/1 Błażej Pietrzak <> Rodrigo Dlugokenski pisze: |
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Błażej Pietrzak, 06/01/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/01/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/01/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Błażej Pietrzak, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Błażej Pietrzak, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Błażej Pietrzak, 06/04/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/04/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Błażej Pietrzak, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Błażej Pietrzak, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/01/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Błażej Pietrzak, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rade Martinović, 06/02/2010
- Re: [perfsonar-user] Prerequisites for SSHTELNET_configurator.jar, Rodrigo Dlugokenski, 06/01/2010
Archive powered by MHonArc 2.6.16.