• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javah in hp-ux

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic