cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Java on SOLARIS

Former Member
0 Likes
808

Hi,

I want to install SAP on solaris. I´ve installed de j2sdk 1.4.2_23 and declare it the Environment variable JAVA_HOME to this directory but I do java -version I get this

root@host # java -version

java version "1.5.0_21"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_21-b01)

Java HotSpot(TM) Server VM (build 1.5.0_21-b01, mixed mode)

What can i do?

View Entire Topic
former_member906139
Active Participant
0 Likes

Hello Ruben,

The problem is in PATH env variable.

The java home you have set is correct, but in PATH env variable, path upto jdk 1.5 bin dir is specified before $JAVA_HOME$/bin.

So please make change and add jdk 1.4 bin dir in first position in PATH env variable.

This will solve your problem.

Regards,

Abhay

Former Member
0 Likes

Hi

Where shell I´ve to declare the E.V PATH? What have to show me the echo $PATH? only the path of the java?

Where can found the file .cshrc for edit the E.V PATH?

More thanks

Edited by: Ruben Torres on Dec 24, 2009 10:18 AM

former_member906139
Active Participant
0 Likes

Hello,

You need to check env variable PATH for user root only as you will be running installation via root.

Now after login with user root, you can give below command to check for PATH env/

  1. env | grep PATH

add your jdk 1.4 path as follows.

  1. setenv PATH /<jdk1.4 path>/bin:$

(setenv command depend on shell on which u are working)

Above command will temporaly add jdk1.4 path so that u can continue with your work.

You can check java version now for confirmation.

If you logged off and login again now, the new value will be removed and again if you check for java version it will show jdk 1.5.

Setting entry in .csh file means permenantly changing env variable, which is not required in your case.

Regards,

Abhay