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

[568 byte] By [java_prog_new] at [2007-11-26 11:35:46]
# 1
Which version of java are you using , can you give me the O/P ofjava -versionwhich javaecho $JAVA_HOMEwhat is the command you are trying to execute...RegardsSush
susee_sun@yahoocoin at 2007-7-7 11:33:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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

java_prog_new at 2007-7-7 11:33:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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

susee_sun@yahoocoin at 2007-7-7 11:33:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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

java_prog_new at 2007-7-7 11:33:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
Sorry , I am not sure about this.., BUTIt is possible to execute But I didnt tried yet..and I suspect that few of 32bit java Components may be corrupted in your system...Sush
susee_sun@yahoocoin at 2007-7-7 11:33:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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?

giri04 at 2007-7-7 11:33:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...