/apps/wls/bea10/jdk160_05/bin/java -d64 -version
execve(): No such file or directory
Error trying to exec /apps/wls/bea10/jdk160_05/bin/sparcv9/java.
Check if file exists and permissions are set correctly.
Failed to start a 64-bit JVM process from a 32-bit JVM.
Verify all necessary J2SE components have been installed.
(Solaris SPARC 64-bit components must be installed after 32-bit components.)
/apps/wls/bea10/jdk160_05/bin/java -d32 -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
uname -a
SunOS mypc 5.10 Generic_144488-07 sun4v sparc SUNW,SPARC-Enterprise-T5220
How can script to check if my JVM is 32 bit or 64 bit?
Note: I need to check this from a remote JVM or unix script as I cant deploy my code on a running JVM.
/apps/java/bin/rmiregistry is 32-bit
/apps/wls/bea10/jdk160_05/jre/bin/java is 32-bit
/apps/wls/bea10/jdk160_05/jre/bin/java is 32-bit
/apps/wls/bea10/jdk160_05/jre/bin/java is 32-bit
1) However, can you help me tweak your script to print respective PID next to each java.
2) How can I get the java version for a particular PID which I wish to pass as a parameter input in $1
3) Also, a small explanation of what each line does so I can play with it.