LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   To install java in solaris sparcv9 and removing the preinstalled java versions (http://www.linuxquestions.org/questions/solaris-opensolaris-20/to-install-java-in-solaris-sparcv9-and-removing-the-preinstalled-java-versions-949002/)

saurabh593 06-07-2012 06:14 AM

To install java in solaris sparcv9 and removing the preinstalled java versions
 
Dear all,

Good evening.

I have to install Java version 7 in 64 bit sparcv9 processor run solaris system. please help me with the complete procedures for the same and as its been mentioned in the java website, self extracting binary (.sh file) is needed for the same. Even after untar of the downloaded tar.gz i am not able to get the .sh file.

please help me.

Thanks in anticipation.

Blinker_Fluid 06-12-2012 10:29 AM

Don't know if it's the "correct" way to do it or not, but I just extracted the new java into /usr so I would have a /usr/jdk.x.x.x directory containing the new jdk then I would mv /usr/java /usr/java.orig and then link my new java to the original link ln -s /usr/jdk.x.x.x /usr/java and verify with java -version that I was using the correct version. You can also just modify your path so the new java version bin is first.

_sa_ 06-12-2012 03:17 PM

Quote:

Originally Posted by Blinker_Fluid (Post 4701526)
Don't know if it's the "correct" way to do it or not, but I just extracted the new java into /usr so I would have a /usr/jdk.x.x.x directory containing the new jdk then I would mv /usr/java /usr/java.orig and then link my new java to the original link ln -s /usr/jdk.x.x.x /usr/java and verify with java -version that I was using the correct version. You can also just modify your path so the new java version bin is first.

This is how I would do it as well

jlliagre 06-12-2012 05:06 PM

moving/renaming /usr/java is unreliable and would make the system unsupported. The JVM installed with the OS shouldn't be altered. If you want a different version, just install it elsewhere and either call it explicitly of adjust you PATH.

_sa_ 06-12-2012 09:03 PM

Quote:

Originally Posted by jlliagre (Post 4701780)
moving/renaming /usr/java is unreliable

Care to elaborate on why it would be unreliable? Not being a smart ass, just curious is all.

jlliagre 06-13-2012 02:15 AM

I just mean you should never change a file belonging to the OS, outside of course those designed to be editable like configuration files. Any Solaris update or patch operation might silently reverse your changes.

_sa_ 06-14-2012 01:43 PM

Quote:

Originally Posted by jlliagre (Post 4701994)
I just mean you should never change a file belonging to the OS, outside of course those designed to be editable like configuration files. Any Solaris update or patch operation might silently reverse your changes.

got it.


All times are GMT -5. The time now is 03:54 AM.