Hi, I had installed jdk 1.1.8 in hp-ux 10.20 (which is project requirement) jre is under /opt/java/jre/bin [using jre, i use to eun the class files] javah is under /opt/java/bin/PA_RISC/green_threads classes.zip is under /opt/java/lib. I had set the PATH as follows: /opt/java/jre/bin:/opt/java/bin/PA_RISC/green_threads:/opt/java/jre/lib/PA_RISC/ green_threads:/usr/lib:/opt/java/lib: when i try to do javah -jni Example [where Example is a class file] It is throwing the error message "java.lang.Object" not found: aborting How to get rid of this problem? What should i do? Thanks a lot...
posted 14 years ago
Sounds like you need the CLASSPATH to include /opt/java/lib/classes.zip. The PATH doesn't care where the classfiles are - only the CLASSPATH does. And you need to name each jar or zip file specifically in the path in order for it to be used. To find a .class file, it's enough to name the directory - but for .jar nad .zip, you need to go one step further.