×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Exception in thread "main" java.lang.NoClassDefFoundError: testjava.class
Caused by: java.lang.ClassNotFoundException: testjava.class
at java.net.URLClassLoader.findClass(URLClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:639)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:605)
This program uses POI version 3.7, and the classpath is:
Googling tells me that "NoClassDefFoundError" means the class was found
during compile time, but is not present at runtime. The environment did
not change between
qsh cmd('javac -classpath $CLASSPATH testjava.java')
Command ended normally with exit status 0.
and
qsh cmd('java -classpath $CLASSPATH testjava.class')
Command ended normally with exit status 1.
I also tried
qsh cmd('javap -s -public -classpath $CLASSPATH testjava.class')
Command ended normally with exit status 1.
which simply got
ERROR:Could not find testjava.class
So what's going on? Why can the compiler find it, but not the java runtime?
--*
Peter Dow*/
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx>
/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.