LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-07-2012, 06:14 AM   #1
saurabh593
LQ Newbie
 
Registered: Jun 2012
Location: Seoul
Posts: 1

Rep: Reputation: Disabled
Unhappy 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.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-12-2012, 10:29 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
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.
 
2 members found this post helpful.
Old 06-12-2012, 03:17 PM   #3
_sa_
LQ Newbie
 
Registered: May 2012
Distribution: OpenIndiana, OSX, Solaris 10, Solaris 11, OEL, Centos, Slackware, Ubuntu
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by Blinker_Fluid View Post
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
 
1 members found this post helpful.
Old 06-12-2012, 05:06 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-12-2012, 09:03 PM   #5
_sa_
LQ Newbie
 
Registered: May 2012
Distribution: OpenIndiana, OSX, Solaris 10, Solaris 11, OEL, Centos, Slackware, Ubuntu
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by jlliagre View Post
moving/renaming /usr/java is unreliable
Care to elaborate on why it would be unreliable? Not being a smart ass, just curious is all.
 
Old 06-13-2012, 02:15 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-14-2012, 01:43 PM   #7
_sa_
LQ Newbie
 
Registered: May 2012
Distribution: OpenIndiana, OSX, Solaris 10, Solaris 11, OEL, Centos, Slackware, Ubuntu
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by jlliagre View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java 6 install not working on Solaris x64 Mark_667 Linux - Software 0 11-01-2011 11:59 AM
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 10:04 AM
How to install two versions of Java using RPMs? kitkit201 Linux - Newbie 3 12-15-2006 12:57 PM
Using two versions of Java UmneyDurak Linux - Software 1 10-02-2005 12:32 AM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration