Link to home
Start Free TrialLog in
Avatar of mehranalmasi
mehranalmasi

asked on

Studio11 on Solaris 8 problem

Hi Experts!
I am stuck installing Studio11 on Solaris 8. I installed Java 2 SDK 1.4.2.11 32 bit and then 64 bit following all the Sun's instructions.
Now when I want to install Studio11 I get different messages depending on the java version used.

The 32 bit version is at : /usr/j2se/bin
The 64 bit version is at: /usr/j2se/bin/sparcv9

If I put the 32 bit version first in my $PATH and run Studio11 installer I get, java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)

and many more lines following.

If I put the 64 bit version in my $PATH, I get: Attach to native processs failed.

I am not sure what should be my $CLASSPATH and have tried different ones without much difference.

Please let me know if you know how to go about resolving this.



Avatar of yuzh
yuzh

Have you apply patchs list in:

http://docs.sun.com/source/819-3052/patches.html

also please read the instructions in:
http://docs.sun.com/app/docs/doc/819-3052
Make sure that you are running the correct Java version, type in
which java

and
java -version

If it is wrong, you need to set the PATH to use the correct Java version, eg:

PATH=/pathto/java 1.4.2_11/bin:$PATH
export PATH
and then  try again

Avatar of mehranalmasi

ASKER

Is there anything in the errors that point to a patch incompatibility? For technical reasons. I prefer not to apply any patches to the OS unless if I am sure its needed.
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Possibly you are using non-standard locale.
use LANG=C and see what hapens after running application.
also unset CLASSPATH if already set. I have no CLASSPATH or any JAVA_* variable, just java executable in PATH.
Hi Nopius,
I tried LANG=C and no CLASSPATH with no difference in result.
What troubles me is that I can not find any documentation that tells me exactly what causes the error "Attach to native processs failed."
My other confusion is the way java 64 bit version installed. As mentioned above, the 32 bit version is in /usr/j2se/bin while the installation of the 64 bit went to /usr/j2se/bin/sparcv9.

Does this mean that I may need the 32 bit version when I am working using 64 bit Solaris?

I have no problem with patching up the OS as yuzh has suggested but I have no solid reason to believe that my errors are caused from the lack of latest patches.
About 64bit/32bit java, I know only that both versions should work fine in 64bit Solaris.

java.lang.NoClassDefFoundError - that's a problem, you may find in the Internet.
If you have sunsolve access, you may find mention of this error for some Java applications.
I agree with yuzh, try suggested patches. Why do you need them all?
Because they are all mentioned in 'Installation and Setup Guide for Solaris Platforms Sun Studio 11", it's a _requirement_ from Sun that guarantees successfull installation of sunstudio.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Apparently I have no choice but to install patches and report back when done.
May take some time...

thank you!