Version Issue!
Hi guys,
I am having a conflict in the versions of the java,
C:\>java -version
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
C:\WINNT\system32>java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
I am asking this because i believe that java 1.4.2_04 is required for weblogic8.1 and below is my path and classpath.
JAVA_HOME3: C:\Java1.4
PATH: C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%JAVA_HOME3%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
CLASSPATH: %JAVA_HOME3%\lib;%JAVA_HOME3%\lib\tools.jar;C:\cygwin\bin;C:\lib\kxml2.zip;C:\lib\servlet.jar;C:\lib\mail.jar;C:\lib\lucene.jar;C:\lib\googleapi.jar;C:\lib\log4j.jar;C:\lib\xerces.jar;C:\lib\junit.jar;C:\Wondir\tomcat\4.0.4\webapps\wondir\WEB-INF\lib\mysql-connector-java-3.0.9-stable-bin.jar;C:\Wondir\tomcat\4.0.4\webapps\wondir\WEB-INF\classes;C:\lib\multipart.jar;C:\Exceed\hcljrcsv.zip;C:\Exceed
I am not sure if i posting this question in the right forum.
Thankyou
[1326 byte] By [
chred123] at [2007-9-30 6:41:18]

> C:\>java -version
> java version "1.3.1_01"
>
> C:\WINNT\system32>java -version
> java version "1.4.2_04"
> JAVA_HOME3: C:\Java1.4
>
> PATH: C:\oracle\ora92\bin;C:\Program
> Files\Oracle\jre\1.3.1\bin;C:\Program
> Files\Oracle\jre\1.1.8\bin;%JAVA_HOME3%\bin;%SystemRoot
> \system32;%SystemRoot%;%SystemRoot%\System32\Wbem
That PATH is the source of your problem.
JAVA_HOME isn't used by the "java" process. It first looks to see if there's a full JRE installation around where it was executed from, and if so, it always uses that. Else (if it was picked up from c:\win*\system32), it looks at the registry keys for Java, and picks up the version identified there as the "default" version.
Looks like the default on your system is correctly set up as 1.4.2.
But you seem to have installed Oracle 9.2 (which comes bundled with a JRE 1.3.1) on your system recently. It has inserted itself into the path before c:\winnt\system32. So if you are somewhere other than c:\winnt\system32, it'll pick up the Oracle-bundled JRE's java, which looks around and finds the full 1.3.1 JRE installed around where it was picked up from, and so it just uses that.
Solution(s):
* Put the Oracle directories at the end of your PATH rather than at the beginning.
OR
* Put the official JRE installation directory (c:\Program\\Files\Java\j2re1.4.2_04) at the head of your PATH, in front of Oracle.