aspose file tools*
The moose likes Linux / UNIX and the fly likes javah in hp-ux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "javah in hp-ux" Watch "javah in hp-ux" New topic
Author

javah in hp-ux

sridevi kumar
Ranch Hand

Joined: Oct 17, 2001
Posts: 31
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...
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
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.


"I'm not back." - Bill Harding, Twister
 
Consider Paul's rocket mass heater.
 
subject: javah in hp-ux