Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to switch JDK version on Windows

30 views
Skip to first unread message

Dmitri Ilyin

unread,
Nov 13, 2002, 6:26:54 AM11/13/02
to
Hi,

i have JDK 1.2.2, JDK 1.3 and JDK 1.4 on my win2000 machine, now is the
version 1.3 actual, becouse i have installed it as last.

How can i switch the actual/default version???

thanks

regards

Dmitri


Ryan Breidenbach

unread,
Nov 13, 2002, 11:41:19 AM11/13/02
to
"Dmitri Ilyin" <dmitri...@gmx.net> wrote in message news:<aqtchf$4m7$1...@svr8.m-online.net>...

For what I can tell, a windows installation typically installs the JDK
as well as a Windows JRE. Whatever JDK is installed last is the what
is the effective JRE. The only thing I would suggest is reinstalling
whatever you want to be your default.

Cowboy Bob

unread,
Nov 13, 2002, 10:10:16 PM11/13/02
to
Ryan Breidenbach wrote:

I'm pretty sure you can still set the JAVA_HOME in your environment
variables. Buried somewhere in the Control Panel I believe (been a LONG
time since I used Windows)

Bob

--
"All I wanted in the end was world domination and a whole lot of money to
spend" - Justin Sullivan

Registered Linux User #228620

R. Kevin Cole

unread,
Nov 14, 2002, 7:45:17 PM11/14/02
to
There is also a registry key that defines the active version. This key is used
by some IDE's.

Check the value of
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion
and
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion

in the registry.

------
kcole

rajasimha

unread,
Nov 15, 2002, 12:04:43 AM11/15/02
to
you may want to do this.
My Computer --> properties --> advanced --> environment variables -->
system variables --> path.
prepend the path with the jdk directory bin that you want to use. come
back to the command prompt and try java -version n see if it is the one
you want.
-Raja

Ryan Breidenbach

unread,
Nov 15, 2002, 10:51:41 AM11/15/02
to
Cowboy Bob <matt200N...@ntlworld.com> wrote in message news:<aquiid$d806q$1...@ID-132753.news.dfncis.de>...

> Ryan Breidenbach wrote:
>
> > "Dmitri Ilyin" <dmitri...@gmx.net> wrote in message
> > news:<aqtchf$4m7$1...@svr8.m-online.net>...
> >> Hi,
> >>
> >> i have JDK 1.2.2, JDK 1.3 and JDK 1.4 on my win2000 machine, now is the
> >> version 1.3 actual, becouse i have installed it as last.
> >>
> >> How can i switch the actual/default version???
> >>
> >> thanks
> >>
> >> regards
> >>
> >> Dmitri
> >
> > For what I can tell, a windows installation typically installs the JDK
> > as well as a Windows JRE. Whatever JDK is installed last is the what
> > is the effective JRE. The only thing I would suggest is reinstalling
> > whatever you want to be your default.
> >
>
> I'm pretty sure you can still set the JAVA_HOME in your environment
> variables. Buried somewhere in the Control Panel I believe (been a LONG
> time since I used Windows)
>
> Bob

Yes, but JAVA_HOME and the JRE are two different things. The JRE is
registered as an application in the Windows registry, where JAVA_HOME
is simply an environent varible. Different Java apps look for
diffenent things when starting up. For example, I am pretty sure the
Eclipse executable looks for the JRE.

As for tweaking the Windows registry, that may work, although that is
never really an attractive proposition for me ;-)

Ryan

0 new messages