Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Easily switch the current default Java version' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily switch the current default Java version
Authored by: wilton on Jan 27, '06 07:42:27AM

Agreed, this method can lead to problems...

Cyberduck broke doing this, and the author seems to have had many users complaining of the same thing.

Will



[ Reply to This | # ]
It doesn't break anything
Authored by: bugugly on Mar 06, '07 12:48:33PM

It just allows quickly switching. Something the neat little app from apple claims to do, yet would never do for me.

Anyone can verify by first using the apple application and java -version at the command line. The version is always 1.5 At least that was my experience.

Then follow along with the hint, in this case I named the file "javaswitch". Then check results of java -version as you easily switch between java versions, just like the apple utitlity should do, but does not.

pb3:/usr/sbin smokethedog$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
pb3:/usr/sbin smokethedog$ sh javaswitch 1.4.2
Current JDK version: 1.5
You must now enter your Mac OS X password to change the JDK.
CurrentJDK -> 1.4.2
pb3:/usr/sbin smokethedog$ java -version
java version "1.4.2_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-269)
Java HotSpot(TM) Client VM (build 1.4.2-76, mixed mode)

It is a switch, like a light switch. Flipping it down does not burn out or break the light bulb. You just have to flip it back up when you want the light to be on!



[ Reply to This | # ]