Does "CLASSPATH" include "."?
Java won't look anywhere unless you tell it to (hmm, though the "JDK_HOME/ext" directory
might be an exception to that), so you have to tell it even to look in the current directory.
Note that you can also put the classpath in your manifest file in your jar. Google around
for how to do it... I remember there is a gotcha with wrapping a long classpath line.
good luck
Ben
Fernando W wrote:
I'm developing a desktop application that uses the
dom4j API. I've exported it to a jar file and put it
in a directory with the dom4j.jar (1.6.1). The problem
is that, when trying to execute de jar with the
command
java -jar application.jar -cp "CLASSPATH"
------(jre1.5.0_04)
I got the following message:
ClassNotFoundException org/dom4j/Branch
both in Linux (kernel 2.6) and Windows (any of them).
Does anybody know if there is any problem with that
Branch class? (Of course I've got it in its correct
place!)
Cheers
Fernando
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user