on 2009 Dec 21 12:07 PM
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?
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
env | grep PATH
add your jdk 1.4 path as follows.
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
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.