set java home on solaris 10

Okkay this should be a very simple quesiton but somehow i cant seem to get the answer simply :( i've been searching google for a while now so please can any of the solaris guru tell me how we can set the java home on the OS level i.e. for all users etc when the log in i want the java home to be whatever i set...

Thanks

S

[342 byte] By [safaqa] at [2007-11-26 17:10:02]
# 1
For all users, you need to set the JAVA_HOME parameter in the /etc/profile. something likeexport JAVA_HOME=</your root JVM directory>Also, rememeber you'll need to update the PATH environment variable to point to the $JAVA_HOME/bin directory
weinharda at 2007-7-8 23:37:52 > top of Java-index,Solaris Operating System,Solaris 10 Features...