Sponsored Content
Operating Systems Solaris How to make 64-bit JVM the default on Solaris 10 Post 302204121 by AKiwi on Tuesday 10th of June 2008 05:37:00 PM
Old 06-10-2008
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.
 

9 More Discussions You Might Find Interesting

1. Solaris

64 bit solaris 9

How can I tell if im running a 64 bit version of solaris? (1 Reply)
Discussion started by: csaunders
1 Replies

2. Solaris

32 / 64 bit OS in Solaris

Dear All, This is Viswanadhan, new to Sun Solaris domain. In Sun Solaris ( SPARC ) has 32 bit and 64 bit OS. While insallation of OS there no specific option for 32 / 64 bit OS .On which basis OS installs for 32 / 64 bit OS ? Regards, Viswanadhan. (1 Reply)
Discussion started by: viswanadhan
1 Replies

3. Solaris

Solaris 64-bit to 32-bit

I had previous implemented the following in my menu.lst to be able to get to 32-bit operations. # title Solaris 10 32-bit root (hd0,0,a) kernel /platform/i86pc/multiboot kernel/unix module /platform/i86pc/boot_archive </code> Now, it is not working as I get the following error : ... (0 Replies)
Discussion started by: praveenr
0 Replies

4. Solaris

Porting C++ 32-bit code on 64-bit Solaris

Hi, I am trying to convert 32-bit code to 64-bit. I have defined function int main() { int* l; size_t len1; fun(len1); return 0; } void fun(int* ptr) { cout<<"\nsizeof(ptr)"<<sizeof(ptr); } However while compiling getting error as : Error: Formal argument ptr... (2 Replies)
Discussion started by: amit_27
2 Replies

5. Solaris

Solaris os 32 bit or 64 bit

:confused: how to find out wether my os is 32 bit or 64 bit. I am using Solaris 5.6. also i want to know the difference between 32 bit and 64bit os. any help will be much appreciated as i am in urgent need of this information (6 Replies)
Discussion started by: asalman.qazi
6 Replies

6. Solaris

How to increase jvm size for solaris 10 (sparc) operating system

Hi, I have solaris 10 (sparc) operating system machine on which I have installed supported weblogic 10.3. It was installed properly. As we know weblogic uses jvm to run and uses a part of jvm memory. But I am facing one problem in which JVM is getting crashed again and again resulting my... (2 Replies)
Discussion started by: neeraj.tati
2 Replies

7. Solaris

JVM startup script in Solaris

Hi, I've installed dynatrace on a SunOS(5.10) & I need to update its agent path in JVM start up script. Where can I find or which script starts JVM? Some Details here : Java location : /<server location>/oracle/forms/FRHome_1/jdk/jre/bin Please help me in this. I did some research... (2 Replies)
Discussion started by: raj100
2 Replies

8. UNIX for Dummies Questions & Answers

JVM for Solaris and Linux

Hi I am using 2 servers Linux and Solaris both 32 bits. If I start the jvm using -Xmx2g, How much the actual heap space I will have condiering I give 128M to permGen on both Solaris and Linux. Thanks (0 Replies)
Discussion started by: Raj999
0 Replies

9. UNIX for Dummies Questions & Answers

Default JVM Memory

Hi , Whenever I am starting JVM it is getting started with Xms as 256MB, which is 1/64 of the Memory available and by default this should happen. But I want to change and start the every JVM with 128MB. Is there any way to do or I have to manually specify Xms tag while starting JVM. Thanks (1 Reply)
Discussion started by: Raj999
1 Replies
AIRPORT2-PORTINSPECTOR(1)				      General Commands Manual					 AIRPORT2-PORTINSPECTOR(1)

NAME
airport2-portinspector - Port maps inspector for the Apple AirPort Extreme Base Station ("Snow") SYNOPSIS
airport2-portinspector DESCRIPTION
airport2-portinspector allows you to inspect the port maps used by the hosts associated with your base station. OPTIONS
airport2-portinspector accepts no command-line options. airport2-portinspector is a wrapper script around the PortInspector.jar jar file located in /usr/share/java/airport-utils. You can set the JAVACMD environment variable to use a specific JVM instead of the one chosen by the wrapper script. Set the DEBUG environ- ment variable to 1 to get the debug output from the wrapper script. ENVIRONMENT VARIABLES
DEBUG Set this variable to 1 to get the debug output from the wrapper script. JAVACMD The full path to the Java Virtual Machine to use. By default, the wrapper uses JAVACMD; if it is not set, it looks for JAVA_BINDIR/java, then for JAVA_HOME/bin/java before looking for a java executable in the PATH. In the latter case, the JVM used can be configured using the Debian alternatives system (see update-alternatives(8)). JAVA_HOME The full path where your JDK/JRE is installed. JAVA_BINDIR The full path to the directory where the java executable is located. JAVA_ARGS Extra command-line arguments to be passed to the Java Virtual Machine. AUTHOR
airport2-portinspector was written by Jon Sevy <jsevy@cs.drexel.edu>. This manual page was written by Julien BLACHE <jblache@debian.org>, for the Debian project (but may be used by others). May 20, 2006 AIRPORT2-PORTINSPECTOR(1)
All times are GMT -4. The time now is 11:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy