Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Any way to switch easily between JDKs

Thread view: 
ReeeYeees@gmail.com - 19 Nov 2007 21:55 GMT
I have to use JDK 1.4.2 for some developmen tasks at work and JDK 1.5
for others.  Each time I want to switch I have to edit my ENV settings
in win2003 server and change the PATH and JAVA_HOME variables.

Is there any program that can switch these for me with a click of a
button?

Thanks!
Lew - 19 Nov 2007 23:17 GMT
> I have to use JDK 1.4.2 for some developmen tasks at work and JDK 1.5
> for others.  Each time I want to switch I have to edit my ENV settings
> in win2003 server and change the PATH and JAVA_HOME variables.
>
> Is there any program that can switch these for me with a click of a
> button?

Invoke through .bat files that set the envars for you.

In Linux (most distros) there is such a mechanism, "alternatives".  It's not a
click of a button, but it's almost that slick.  (You have to issue a command.)

If you use an IDE like NetBeans, it'll handle the switch for you.  You tell
the project properties which Java version to target for each project.

Signature

Lew

Cameron - 19 Nov 2007 23:26 GMT
I'm developing through RAD (same as Eclipse), I'll have to check the
options in there.  Maybe it can easily overwrite the default environment
settings depending on which project I'm working.  Nice idea, thanks!
Lew - 20 Nov 2007 00:28 GMT
> I'm developing through RAD (same as Eclipse), I'll have to check the
> options in there.  Maybe it can easily overwrite the default environment
> settings depending on which project I'm working.  Nice idea, thanks!

I use RAD at work.  It has options in its preferences to identify all the JVMs
on your system, and use the right one for each project.  (As does its core,
Eclipse).

Signature

Lew

Arne Vajhøj - 20 Nov 2007 00:33 GMT
> I'm developing through RAD (same as Eclipse), I'll have to check the
> options in there.  Maybe it can easily overwrite the default environment
> settings depending on which project I'm working.

Eclipse:

window
preferences
java
installed JRE's

Arne
Roedy Green - 20 Nov 2007 02:16 GMT
>Is there any program that can switch these for me with a click of a
>button?

you can set the env variables with a regedit import.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.