- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Programs dont execute on my HP UX 11i V2.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2007 04:34 AM
10-05-2007 04:34 AM
I have a HP-UX 11i V2 and we installed Java1.5 and 1.4 on it.
I also set the CLASSPATH and the PATH variables as per the HP-UX documentation. Just to be sure I set both PATH and CLASSPATH as '/opt/java1.4/bin' and then I did an 'export PATH' and 'export CLASSPATH' as follows:
'PATH=$PATH:.:/opt/java1.4/bin:/op
t/java1.4/jre/lib:/opt/java1.4'
'CLASSPATH=.:/opt/java1.4/bin:/opt/java1.4:/opt/java1.4/jre/lib
export CLASSPATH'
I am unable to compile java code from my user home. It keeps saying "java.lang.Error: Properties init: Could not determine current working directory".
Then when I try to compile it from the java source (that is /opt/java1.4/bin/>javac helloworld.java -d /home/project/username) it creates a .class file with no compilation errors. But when I try to run this .class file (that is opt/java1.4/bin>java /home/project/username/helloworld) it gives me an error 'Exception in thread "main" java.lang.NoClassDefFoundError: /home/project/username/helloworld.
I checked this helloworld program on my Windows machine and it works fine.
Kindly reply with a soln. I would be glad to give more infomation if needed.
Thanks in advance.
P.S: I have tied the same with java1.5 and I also posted a similar issue under the HP UX 11i under Programming and Scripts section before I realised there was a java forum. I apologize for the overload.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2007 04:37 AM
10-05-2007 04:37 AM
Re: Programs dont execute on my HP UX 11i V2.
Did you set JAVA_HOME variable. I am not developer but we use JAVA_HOME variable with tomcat as follows
export JAVA_HOME=/opt/java1.4
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2007 05:11 AM
10-05-2007 05:11 AM
Re: Programs dont execute on my HP UX 11i V2.
Like Murat suggested, set JAVA_HOME first.
And you cannot run Java programs with full path in the command line (like 'java /home/project/username/helloworld'). For details, refer to Java packages, Classpath, etc.
Try this:
cd /home/project/username
java helloworld
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2007 05:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2007 07:20 AM
10-05-2007 07:20 AM
Re: Programs dont execute on my HP UX 11i V2.
Regards,
eeriehunk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2007 07:31 AM
10-05-2007 07:31 AM
Re: Programs dont execute on my HP UX 11i V2.
don't forget the points
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Best Regards
Murat