Operating System - HP-UX
1833596 Members
3399 Online
110061 Solutions
New Discussion

Help with Java installation

 
SOLVED
Go to solution
I.Delic
Super Advisor

Help with Java installation

Hi,
Can somebody help me with installation of Java on my system.
Not the last version but 1.4 wil be good.
I did not instal this kind of programs on my system yet.
I don't have any experience but i want to learn.

I need this information:

Which software i have to use ?
How i have to do that ?
Do i need to reboot my system ?

I'm a good student and i have to find a good teachter.
Please learn me
Thank you in advance

Please don't send me a lik with 1000 kinds of java that i can instal. !

Thank you in advance

Idriz
7 REPLIES 7
I.Delic
Super Advisor

Re: Help with Java installation

Hi,

I have some more question.

How i can check if i have a java on my system ?
Do i have to reinstal the old version before i instal the new one ?

Do i have to reboot my system for al those operation ?
Which patch i have to install ?
How i have to do that ?


Thank you


Idriz
Mel Burslan
Honored Contributor
Solution

Re: Help with Java installation

Java installation on hpux is a tricky one. Not because of the process but because of the selection. Your server may host more than one java version and it is upto the application to decide which one to use and adjust its running environment.

Java installation is usually asked by a third party application provider and they have to specifically tell you which version to the 3rd level subversion that they want, as every minor version change may have significant effects on the developer's code. First ask them which version and sub-version they are comfortable with (example 1.4.2.08 or 1.3.1.17 etc)

then go to

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

find the specific version or one closest to that. Then go to this page:

http://www.hp.com/products1/unix/java/patches/index.html

and find out which set of patches are applicable to your case and download them.

using swinstall and basic sysadmin skills, first load the patch set and let the server reboot if necessary.

Then you will be able to install java downloaded from the first URL above. It willnot require a reboot.

But most important aspect of this explanation is to ASK the user what they need, more than anything else.

HTH
________________________________
UNIX because I majored in cryptology...
Mel Burslan
Honored Contributor

Re: Help with Java installation

you do not have to install an old version to be able to install a newer one. They are independent of each other.

to check if you have any java installed on your server

ls -l /opt | grep -i java

if you have any installed base, you will see it listed as a directory with every major version, like

ls -l /opt | grep -i java
dr-xr-xr-x 9 bin bin 1024 Feb 24 2000 java
dr-xr-xr-x 4 bin bin 96 Dec 20 2003 java1.2
dr-xr-xr-x 3 bin bin 96 Dec 20 2003 java1.3
dr-xr-xr-x 3 bin bin 96 Dec 20 2003 java1.4

to figure out which minor revision you have under each directory:

# /opt/java1.2/jre/bin/java -version
java version "1.2.2.15"
HotSpot VM (1.0.1fcs, mixed mode, PA2.0 build 1.2.2.15-03/05/20-PA_RISC2.0)

repeat this command with the number of versions you have as necessary
________________________________
UNIX because I majored in cryptology...
Raj D.
Honored Contributor

Re: Help with Java installation

Hi Delic ,

You can install the Java from downloading form the HP site.


1. First you need to have the minimum patch level for this :

On the top of June 2004 QPK , you need to have the following patches :

PHKL_25842
PHCO_29960
PHKL_32457

Check out this link:
http://www.hp.com/products1/unix/java/patches/g-11.11-1.3-1111.0406.html


2. I am not sure if 1.4 Java version is there , I have installed recently Java SDK 1.3.1.16 .

And latest is Java 1.2.1.17 Sept 2005.

Here it is :

http://www.hp.com/products1/unix/java/java2/sdkrte1_3/downloads/license_sdk_1-3-1-17_pa-risc.html


3. To install:

(i) untar it .
(ii) # swinstall -s `pwd`/java_file.depot

4. Check installed version:

(i) # cd /opt/java1.3/bin
(ii)# ./java -version


Enjoy ..
Cheers,
Raj.





" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Help with Java installation

Delic ,

in the 2nd step , typo error ,

Its ,

Java 1.3.1.17 Sept. 2005.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Arunvijai_4
Honored Contributor

Re: Help with Java installation

Delic,

Which software i have to use ?
A) Go to http://www.hp.com/go/java and download SDK and RTE 1.4 or 1.5 (Whichever you like)

How i have to do that ?
A) Download java depot and use swinstall,
#swinstall -s

Do i need to reboot my system ?
A) No need to reboot your machine.

How i can check if i have a java on my system ?

A) Check in /opt for any java installations. Also, swlist|grep -i java will help.

Do i have to reinstal the old version before i instal the new one ?
A) No need.

Do i have to reboot my system for al those operation ?
A) Not required

Which patch i have to install ?
A) Check this link, http://www.hp.com/products1/unix/java/patches/index.html

How i have to do that ?
A) Download required patches for your system from the above link and do # swinstall -s Note : You may require to reboot your machine for pathcing.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Joseph Loo
Honored Contributor

Re: Help with Java installation

hi idriz,

archived release of java version, take your pick:

http://www.hp.com/products1/unix/java/archives/index.html

no need to reboot after installation.

to check the version:

# /opt/java/bin/java -version
e.g. /opt/java1.3/bin/java -version


happy to help.

regards.
what you do not see does not mean you should not believe