The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sun to make Solaris more friendly - PC Pro iBot UNIX and Linux RSS News 0 07-09-2007 06:20 PM
sun solaris 10 make error sunrise SUN Solaris 9 05-29-2007 01:20 AM
solaris 9 php-4.3.4 make issue xyyz UNIX for Advanced & Expert Users 2 02-06-2004 10:35 PM
solaris 9 openssl make problem with ld xyyz UNIX for Advanced & Expert Users 1 02-03-2004 06:30 AM
make recovery tape for solaris xiamin Shell Programming and Scripting 2 08-09-2002 03:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2008
Registered User
 

Join Date: Jun 2008
Posts: 2
Stumble this Post!
How to make 64-bit JVM the default on Solaris 10

Hi,

I am running my application on a 64-bit Solaris 10 machine. Currently, my application uses JRE 1.6 32-bit version. I am trying to make it work with JRE 1.6 64-bit version. I successfully installed 64-bit java using the instructions here: How do I install Java for my Solaris x64 computer ? - 1.5.0 and am able to invoke 64-bit java using either

Code:
$JAVA_HOME/bin/java -d64
or by using

Code:
$JAVA_HOME/bin/sparcv9/java
My application always invokes the java executable under $JAVA_HOME/bin. By default, this is invoking the java 32-bit version which I do not want. Of course, I could add the -d64 option to all calls to java in my application. However, I do not want to do that as java is being called from a number of scripts and some scripts are also being shared between multiple platforms.

How do I make the 64-bit java the default? I tried copying over the java executable from under $JAVA_HOME/bin/sparcv9 to $JAVA_HOME/bin. This seems to invokes the java 64-bit version correctly from within my application. However I do not know if this is the right thing to do or if it has adverse side effects.

Any help/inputs will be greatly appreciated!

Thank you so much.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-10-2008
drink < bottle ; opener
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 242
Stumble this Post!
what about changing $JAVA_HOME from its current variable to something like

Code:
export JAVA_HOME=$JAVA_HOME/bin/sparc9
Reply With Quote
  #3 (permalink)  
Old 06-11-2008
Registered User
 

Join Date: Jun 2008
Posts: 2
Stumble this Post!
Hi Pupp,

Thank you for your response! I considered your suggestion - but as I said, since some scripts are common across platforms, if possible, I would like to avoid Solaris specific changes to them.

Also the java executable for 64 bit is present directly under the sparcv9 directory. Usually the executables are supposed to be under $JAVA_HOME/bin, right?

Last edited by AKiwi; 06-11-2008 at 02:58 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0