I'm working in linux. I'm able to compile code but not run it. The generated error type is java.lang.NoClassDefFoundError. I know that the error is generated because
java can't find the byte code after the code is compiled.
All the byte code is in "/var/tomcat/bin" and I try to run it from this directory. The defined directories are below. Is there anything else I need to add to the directories?
CLASSPATH =
/var/tomcat/webapps/axis/WEB-INF/lib/axis.jar:
/var/tomcat/webapps/axis/WEB-INF/lib/wsdl4j.jar:
/var/tomcat/webapps/axis/WEB-INF/lib/clutil.jar:
/var/tomcat/webapps/axis/WEB-INF/lib/xerces.jar:
/var/tomcat/webapps/axis/WEB-INF/lib/log4j-core.jar:
/usr/java /j2sdk1.4.2_01 /bin
JAVA_HOME = /usr/java/j2sdk1.4.2_01
PATH = /usr/local/bin:
/usr/bin:
/bin:
/usr/X11R6/bin:
/home/simon/bin:
/usr/java/j2sdk1.4.2_01/bin/