right, the compiler finds the class, the vm does not.
for me, setting the PATH- and CLASSPATH-enviroment to where the log4j.jar is located, worked.
tobi
Am Tue, 20 Jul 2004 17:23:19 -0300 hat Andre Lucas Toledo de Paula <[EMAIL PROTECTED]> geschrieben:
Hi everyone,
I have a java program (a XML Parser) in IBM F80 AIX Server using JDK 1.1.8 . This component has the following tree of directories:
-home --- home/conf (configuration files) --- home/lib (containing all .JAR needed, including log4j-1.2.8.jar)
The following command is used to start the java program in the directory /home :
where : home -> /in68/oracle/SYN_SAP_R3
java -ms32m -mx256m -ss819200 -oss819200 -classpath /usr/jdk_base/lib/classes.zip:/in68/oracle/SYN_SAP_R3/lib/listenerSAP.jar:/i n68/oracle/SYN_SAP_R3/lib/mail.jar:/in68/oracle/SYN_SAP_R3/lib/activation.ja r:/in68/oracle/SYN_SAP_R3/lib/log4j-1.2.8.jar:/in68/oracle/SYN_SAP_R3/lib/cl asses12.zip :/in68/oracle/SYN_SAP_R3/lib/nls_charset12.zip:/in68/oracle/SYN_SAP_R3/lib/o crs12.zip:/in68/oracle/SYN_SAP_R3/lib/xmlcomp.jar:/in68/oracle/SYN_SAP_R3/li b/xmlparserv2.jar br.com.synchro.xmllistener.ListenerXML /F./conf/Listener.ini &
I've checked the name, the size of the log4j component and its the same as
the installation path .
I've created a new version of the component, without using log4J and it did
work as expected . Note that
this is the only JAR file that are unrecognized by the JVM .
The complete error looks like this :
java.lang.NoClassDefFoundError: org/apache/log4j/LogManager at br.com.synchro.logging.Log4jLogger._$3128(Compiled Code) at br.com.synchro.logging.Log4jLogger.<init>(Compiled Code) at br.com.synchro.logging.LoggerFactory.getLogger(Compiled Code) at br.com.synchro.xmllistener.ListenerXML.main(Compiled Code)
I really would be gratefull if anyone could help us in this issue .
Thanks for helping,
Andr� Lucas Toledo de Paula Analista Programador [EMAIL PROTECTED] Tel: 11 3758 0021 - ramal: 186
SYNCHRO Solu��o Fiscal Brasil www.synchro.com.br
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
