Problem in invoking 32 bit JVM by using -d32 option
Hi all,
I am facing the following error message on solaris 10, when i use -d32 option in java command.
execv(): No such file or directory
Error trying to exec /usr/j2se/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.)
I am not able to figure out why this error is coming.
cheers,
ngs
# 2
Hi Sush,
thanks for replying. here are the output of the commands that u have asked for.
bash-3.00$ java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)
bash-3.00$ which java
/omcsw/29.0.1.3.00/lib/3pt/jre/bin/java
bash-3.00$ echo $JAVA_HOME
/omcsw/29.0.1.3.00/lib/3pt/jre/bin
cheers,
ngs
# 3
Everything seems to be fine.,
But the command that you are trying to execute is trying to use the java file inside the
/usr/j2se/bin/sparcv9 directory
which will be a different version of java.., In my system it seems to be
[root@nitwebsun01 /]$ ./usr/j2se/bin/sparcv9/java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_08-b02, mixed mode)
[root@nitwebsun01 /]$
Try to execute the command witht the full path of the java.....
./omcsw/29.0.1.3.00/lib/3pt/jre/bin/java <args >
Sush
# 4
Hi Sush,
I tried executing by giving full path of java. It gave same error. I have one more question. I have compiled the code using 64 bit JVM. Can i run that class code by using -d32 option in java command ?
[ Thats exactly what i am doing. And it is giving the same error. ]
bash-3.00$ /omcsw/29.0.1.3.00/lib/3pt/jdk/jre/bin/java -d32 test
execve(): No such file or directory
Error trying to exec /omcsw/29.0.1.3.00/lib/3pt/jdk/jre/bin/../java.
Check if file exists and permissions are set correctly.
Failed to start a 32-bit JVM process from a 64-bit JVM.
Verify all necessary J2SE components have been installed.
(Solaris SPARC 64-bit components must be installed after 32-bit components.)
regards,
ngs
# 6
JVM is complaining about some missing file(s).
Please check if you can access this file - /omcsw/29.0.1.3.00/lib/3pt/jdk/jre/bin/../java.
ls -l /omcsw/29.0.1.3.00/lib/3pt/jdk/jre/bin/../java
file /omcsw/29.0.1.3.00/lib/3pt/jdk/jre/bin/../java
/omcsw/29.0.1.3.00/lib/3pt/jdk/jre/bin/../java -version
>> From the error message:
Solaris SPARC 64-bit components must be installed after 32-bit components
Is it how you installed 64-bit JVM?