PRB: JAVAH Cannot Find Classes When ExecutingID: Q225523
|
When running Javah.exe on a Java class, you may get one of the following or similar errors:
Signalled error "java/lang/NoClassDefFoundError" with detail "java/io/Serializable"
-or-
java.lang.Object not found: aborting
Javah.exe, unlike the other Microsoft SDK for Java tools, requires the user to specify a class path via the "-classpath" command line option or via the CLASSPATH environment variable. If the class path is not specified, is invalid, or contains corrupted or missing data, then Javah.exe does not work.
There are a couple of things to check if you receive one of these error message:
[windir]\java\classes\Classes.zip
and the directory that contains your class files.
clspack -auto
This behavior is by design.
Additional query words: JAVAH.EXE JAVAH
Keywords : kbJNative kbSDKJava kbGrpJava kbSDKJava320
Version : WINDOWS:3.1
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 9, 1999