Re: Environment Variable for Java

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: qazmlp (qazmlp1209_at_rediffmail.com)
Date: 02/12/04


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!



Relevant Pages

  • Re: Vista - jre1.6.0_05 - applets wont run
    ... I'm wondering if I need to wait for Java 6 Update 10? ... with Windows I always reboot everytime I install ... UAC, uninstall the JRE, reboot, reinstall the JRE, reboot, and then attempt ...
    (comp.lang.java.programmer)
  • Re: [SLE] Installing JavaSDK - Path Problems
    ... I had already uninstalled the default suse JRE thus my ... java still doesn't work.... ... >> wouldn't work unless I invoked that command again. ... >> When I install the SDK or JRE using sun's rpm they install in ...
    (SuSE)
  • Re: MatLab GUI doesnt appear
    ... I tried both command lines, none of them worked:(They caused this message: ... to specify an alternate JRE, but MATLAB cannot find it. ... It seems that it's a Java related problem, eventhough I've installed the Sun Java Runtime Environment 6 architecture dependent AND independent files, according to Synaptic. ...
    (comp.soft-sys.matlab)
  • Re: A constructive debate: Eclipse or NetBeans?
    ... that Linux and command-line driven languages like OCaml are so much more ... That's because most people never learn to use a command line or a simple ... Trying to run other people's OpenGL-based Java demos from the web I find ... OpenGL). ...
    (comp.lang.java.softwaretools)
  • Re: javac problem
    ... an internal or external command, ... You can download two Java environments: the SDK or the JRE. ... the javac command to compile java. ...
    (comp.lang.java.help)