setup problems

I tried to install sun studio (tarfile), but when i type sunstudio in command line it says that java isnt installed, and prep_system says it is (and its true). what have i to do?
[185 byte] By [Tihiya] at [2007-11-27 9:50:19]
# 1
Try supplying --jdkhome parameter to sunstudio like this:/opt/12/SUNWspro/bin/sunstudio --jdkhome /usr/jdk1.5.0_09/If it won't help, please post any errors/warnings here.
MaximKartasheva at 2007-7-13 0:19:03 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

> I tried to install sun studio (tarfile), but when i

> type sunstudio in command line it says that java isnt

> installed, and prep_system says it is (and its true).

> what have i to do?

Are you sure that Java is in your $PATH? Type "java" in your bash terminal; you should see this:

Usage: gij [OPTION] ... CLASS [ARGS] ...

to invoke CLASS.main, or

gij -jar [OPTION] ... JARFILE [ARGS] ...

to execute a jar file

Try `gij --help' for more information.

If you don't see the above message, you need to add the following lines to your ~/.bashrc:

JDK_HOME=/opt/jdk1.6.0_01;export JDK_HOME

if [ -z "${PATH}" ]

then

PATH="/opt/jdk1.6.0_01/bin"; export PATH

else

PATH="$PATH:/opt/jdk1.6.0_01/bin"; export PATH

fi

where /opt/jdk1.6.0_01 must be replaced by your Java's directory.

PAP_Fortrana at 2007-7-13 0:19:03 > top of Java-index,Development Tools,Solaris and Linux Development Tools...