R: [jdom-interest] Re: ClassNotFoundException

daniele rizzi daniele.rizzi at ls.largesys.it
Wed Sep 19 00:15:26 PDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Dear mr. Honnold,
if a ClassNotFoundException is raised, then the right jar is NOT
loaded;
you should put jdom.jar in the classpath, and not necessarily the
environment var.
I've never seen JRun, but I suppose there's a config file, just like
the jserv.properties in Apache/Jserv, where you could specify the
classpath;
a second approach could be to find out the java command and add there
the
path of jdom.jar (or move it to the jre\lib\ext mocking a standard
extension
which 'should' be loaded automatically)

hope it helps,
d.rizzi


- -----Messaggio originale-----
Da: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]Per conto di Honnold, John (GA)
Inviato: martedì 18 settembre 2001 19.31
A: 'jdom-interest at lists.denveronline.net'
Oggetto: [jdom-interest] Re: ClassNotFoundException


I have a servlet that runs great using Visual Cafe and JDK 1.18.
When I try
and run the servlet on our webserver I get the infamous
java.lang.ClassNotFoundException when it attempts to execute the
following
code.

SAXBuilder builder = new SAXBuilder();

I am able to recompile the code on the webserver with no errors.  The
problem appears to be a classpath problem but have read the classpath
info
in the FAQ's at jdom.org and have set up my classpath accordingly
along with
running the build11.bat.   Our webserver is currently using JRUN 2.2
with
JDK 1.18.  Is there a specific place that the various .jar files
should be
placed?  The fact that I can compile the servlet and have it execute
the
various jdom import statements lead me to think my classpath is
correct.

Any help will be greatly appreciated
John Honnold

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@y
ourhost.com

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBO6hFsHQ0FMcAcek4EQL7TwCg3ghIsGcSBK4GSQOE1VeFcRocUlsAoKp6
2AXl7kFQZ6LG3rK5u9s5UjCA
=igqx
-----END PGP SIGNATURE-----




More information about the jdom-interest mailing list