File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "javah in hp-ux" Watch "javah in hp-ux" New topic

javah in hp-ux

sridevi kumar
Ranch Hand

Joined: Oct 17, 2001
Posts: 31
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 is under /opt/java/lib.
I had set the PATH as follows:
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

Joined: Jan 30, 2000
Posts: 18671
Sounds like you need the CLASSPATH to include /opt/java/lib/ 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
I agree. Here's the link:
subject: javah in hp-ux
It's not a secret anymore!