Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javah in hp-ux

 
sridevi kumar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic