1833704 Members
2406 Online
110062 Solutions
New Discussion

HP Java support

 
SOLVED
Go to solution
pc123_1
Frequent Advisor

HP Java support

Hi.
I have installed the latest version of Tomcat (4.0). It doesn't start due to some java classes missing.
My question is:
1. What version of Java can be installed on HP-UX? The current Java 2 1.4 doesn't have an install package for HP-UX? Is there an HP site with HP Java packages?
2. Will tomcat run on HP-UX?

Hopefully someone here had experience with Java on HP-UX. I will appreciate all comments.
9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: HP Java support

Hi,

Try this link:
http://www.hp.com/products1/unix/java/

Pete

Pete
Bill McNAMARA_1
Honored Contributor

Re: HP Java support

http://www.hp.com/go/java

Good site too..

Later,
Bill
It works for me (tm)
pc123_1
Frequent Advisor

Re: HP Java support

There are two sets of Java packages - for PA-RISC and Itanium. Which one to choose without having all hardware docs at the moment?
Pete Randall
Outstanding Contributor

Re: HP Java support

That would depend on your server/OS. Do you have an Itanium server or a PA-RISC base server?

Pete

Pete
U.SivaKumar_2
Honored Contributor

Re: HP Java support

HI,
What you need to download is PA-RISC

regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: HP Java support

assuming you don't have itanium
Innovations are made when conventions are broken
pc123_1
Frequent Advisor

Re: HP Java support

Before I install the latest version...

Here's answer to a question i found in Java FAQ:

************************
: I downloaded Java and got the error: "Unable to initialize threads -- cannot find class java/lang/thread". What should I do?

A: For most users, the java wrapper script will take care of setting the JAVA_HOME environment variable and will add the appropriate entries to the CLASSPATH so that the JVM finds the standard API classes.

The PATH environment variable needs to include a path to the java wrapper script. People writing applications with non-Java mains may need to worry about the setting of CLASSPATH and SHLIB_PATH. They can set CLASSPATH in the JDK1_1InitArgs structure passed to JNI_CreateJavaVM(). They need to ensure that SHLIB_PATH is set to include the directories where the JVM shared libraries are found (typically ${JAVA_HOME}/lib/PA_RISC/green_threads or ${JAVA_HOME}/lib/PA_RISC/native_threads). SHLIB_PATH must be set prior to launching the application. Using setenv() to set SHLIB_PATH within the application will not have an effect on how the dld searches for shared libraries.
***************************

My question is: How do I set the java wrapper class in CLASSPATH? The Unix server I got came with preinstalled Java, however no JAVA_HOME and CLASSPATH env. variables were set. And I am having trouble finding install info on hp site.
U.SivaKumar_2
Honored Contributor

Re: HP Java support

Hi,
Appended the nessecary PATH in
/etc/PATH file
Append the nessecary SHLIB_PATH in
/etc/SHLIB_PATH
And for CLASSPATH do this
#export CLASSPATH=/opt/java/class (or whatever)


regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: HP Java support

HI,Environment
Variable Add
CLASSPATH installDir/SUNWjdmk/jdmk4.2/1.1/lib/jdmkrt.jar:
installDir/SUNWjdmk/jdmk4.2/1.1/lib/jdmktk.jar:
installDir/SUNWjdmk/jdmk4.2/1.1/lib/collections.jar
or installDir/SUNWjdmk/jdmk4.2/1.1/lib/jdmkrt.jar:
installDir/SUNWjdmk/jdmk4.2/1.2/lib/jdmktk.jar

PATH installDir/SUNWjdmk/jdmk4.2/1.1/bin
or installDir/SUNWjdmk/jdmk4.2/1.2/bin

regards,
U.SivaKumar

Innovations are made when conventions are broken