Re: Environment Variable for Java
From: qazmlp (qazmlp1209_at_rediffmail.com)
Date: 02/12/04
- Next message: George Hester: "Re: SP4 install failure"
- Previous message: Cosmic Cruizer: "Seeing a console window on a service"
- In reply to: Pegasus \(MVP\): "Re: Environment Variable for Java"
- Next in thread: Pegasus \(MVP\): "Re: Environment Variable for Java"
- Reply: Pegasus \(MVP\): "Re: Environment Variable for Java"
- Messages sorted by: [ date ] [ thread ]
Date: 11 Feb 2004 19:02:15 -0800
"Pegasus \(MVP\)" <I.can@fly.com> wrote in message news:<uYiktXG8DHA.2924@tk2msftngp13.phx.gbl>...
> "qazmlp" <qazmlp1209@rediffmail.com> wrote in message
> news:db9bbf31.0402102202.c27bbd2@posting.google.com...
> > I have installed both JRE-1.2.2 & JRE-1.3.0_02 in my Win2k machine.
> > In both
> > control-panel->System->Advanced->Environment variables->User
> > variables->PATH
> > control-panel->System->Advanced->Environment variables->System
> > variables->PATH,
> > I have given the path for JRE-1.2.2 first,JRE-1.3.0_02 second and then
> > the other paths. But, if the JRE 1.3.0_02 is always considered. Why is
> > this so?
> >
> > Then, when I checked for 'set PATH' in the command prompt, it displays
> > some other paths and then the paths for JRE-1.2.2,JRE-1.3.0_02.
> > "C:\WINNT\system32" was existing before the JRE paths and I could find
> > java.exe(1.3.0_02) in that path. That was the reason, why JRE 1.3.0_02
> > is always selected?
> >
> > If path variables do not work, what is the way so that JRE-1.2.2 is
> > selected by default?
>
> To answer your question, the following information would be
> required:
> - Your actual path as seen in the Control Panel.
User variable PATH:
C:\Program Files\JavaSoft\JRE\1.2\bin; C:\Program
Files\JavaSoft\JRE\1.3.0_02\bin;D:\TOOLS\SINT;c:\tools
System variable PATH:
C:\Program Files\JavaSoft\JRE\1.2\bin; C:\Program
Files\JavaSoft\JRE\1.3.0_02\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
Files\Rational\common;C:\atria\bin
> - Your path as seen in a Command Prompt.
C:\Documents and Settings\GUIUser>set PATH
Path=\\NTSTORE\WINRUNNER7.5\arch;\\NTSTORE\WINRUNNER7.5\arch;C:\WINNT\system32
;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Rational\common;C:\atria\bin;C
:\Program Files\JavaSoft\JRE\1.2\bin; C:\Program
Files\JavaSoft\JRE\1.3.0_02\bin
;D:\TOOLS\SINT;c:\tools
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> - How exactly you invoke a Command Prompt.
>From Start->Run->Cmd
> - How exactly you determined that JRE-1.30_02 is treated preferentially
> in a Command Prompt?
Immediately after the command window opened, I typed, 'java -version'.
C:\Documents and Settings\GUIUser>java -version
java version "1.3.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
One of the application that I use needs Java 1.2.2 and unfortunately
it does not work with 1.3.0_02. I have been using this application for
quite a long time. But, it stopped working imm. after I installed the
JRE 1.3.0_02.
Now, as I have 2 JRE versions in my machine, I wanted to give the Java
1.2.2 PATH first to make the Application to run.
> - If it is "JRE-1.30_02" or "JRE 1.30_02" (you oscillate between the two).
It is JRE 1.3.0_02.
> - If you rebooted after setting the new path in the Control Panel.
After setting the Path, I just opened a new command line window from
Start->Run-Cmd.
Why should I reboot?
Thanks for your inputs!
- Next message: George Hester: "Re: SP4 install failure"
- Previous message: Cosmic Cruizer: "Seeing a console window on a service"
- In reply to: Pegasus \(MVP\): "Re: Environment Variable for Java"
- Next in thread: Pegasus \(MVP\): "Re: Environment Variable for Java"
- Reply: Pegasus \(MVP\): "Re: Environment Variable for Java"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|