Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Setting up new version of java

HP-UX


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 3 Days Ago   -   Original Discussion by anaigini45
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 17 November 2017, 5:01 AM EST
Posts: 97
Thanks: 4
Thanked 0 Times in 0 Posts
Setting up new version of java

Hi,

I have got jre 1.5 that I have got to install in the HP.UX version 11.31.
I managed to install it with this command :


Code:
# swinstall -s /tmp/<jre.XXXXX.depot>

It automatically gets created in /opt/java1.5/jre/bin.
However, now I am not sure how to set the PATH to JAVA_HOME, and path to this /opt/java1.5/jre/bin. Are these two the same?

Also I used this command to try and set the PATH (wrong path) :


Code:
export PATH=/opt/java1.5/bin:$PATH

I can now see /opt/java1.5/bin at the beginning of the line when I do an

Code:
#echo $PATH

However, since the entry is wrong, how do I remove it?

Also what is the difference between using the command above to set the PATH variable, and also setting it directly in /etc/PATH?

And how do I ensure that I get the output of java version 1.5 when I type this :


Code:
java -version

As of now, when I run the command above, it says "java not found".
In other servers on the other hand, I get different java versions when I run the same command.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setting java and returning version bigbenn Shell Programming and Scripting 1 07-10-2013 03:16 PM
Advanced Search * View * Edit JAVA version to WORK in GLASSFISH Forum topic JAVA version lhareigh890 UNIX for Advanced & Expert Users 1 02-10-2011 03:49 PM
Setting link to newly installed Java version harjitsingh Solaris 4 05-28-2008 12:25 PM



All times are GMT -4. The time now is 02:36 AM.