Problem installing sunstudion
I am new to the UNIX world and am trying to install Sunstudio on my solaris system. I used the tar file. Extraction of the file was successful
When I try to run sunstudio using
. sunstudio --netbeans /home1/downloads/C++/netbeans-5.5.1
I get the following error
Unrecognized option: -client
Could not create the JAva Virtual Machine
I am not sure what this means as I did not specify any -client otpion.
Thanks in advance.
[471 byte] By [
binjavaa] at [2007-11-27 11:05:02]

# 1
This message is from JVM and -client is JVM option that sunstudio script passes to it.
What version of Java do you have ('java -version')? Also, --netbeans option is not right, it should be --netbeanshome. Anyway, Sun Studio tar file should have NetBeans and there should be no need in specifying it manually; sunstudio startup script knows where to find it.
For example, this is my installation directory:
$ ls /opt/12/
SS12_README.txt SUNWspro/ netbeans-5.5.1/
So when I start /opt//12/SUNWspro/bin/sunstudio, it looks for netbeans in ../../netbeans-5.5.1 and finds it all right.
You can try debugging sunstudio script in order to understand what went wrong: start Sun Studio with
bash -fx <path_to_sunstudio>/bin/sunstudio
and look at the output. You can also post this output here and I'll try to help you analyzing it.
# 2
Thanks for the response
Sorry that should have been --netbeanshome.
I have the netbeans installation under /home1/downloads/C++/netbeans-5.5.1 but the script does not find this automatically. Guess I had to add it to the PATH. Once this was done it solved that problem.
Now the second issue with the JDK you are right I have version 1.1.7 . I am trying to upgrade it to the latest JDK 6 but the installation files that I am copying seem to be corrupt. Tried different ones but all have the same problem.
I execute it
I get the LICENSE agreement, type in yes
It says
Unpacking....
Checksumming....
Then an error message which says that the download file is corrupt. This happens also for the JDK 5 installation.
Am not sure if this is because of the firewall.
Thanks again.
# 3
Okay, you really need JDK 1.5 or 1.6 to use Sun Studio 12. As to "file is corrupt" error, I've seen it on my Nexenta system, maybe the root cause is the same. Look for "Installing Java on Nexenta" in my blog http://blogs.sun.com/dbx/entry/installing_nexenta_gnu_solaris_on
If it doesn't help, try googling for "The download file appears to be corrupted" or some other part of installer error message plus your distribution name and version, I'm sure this problem has been solved already.