Using Java SE 6 instead of 5

Joined
Aug 4, 2007
Messages
9
Reaction score
0
Points
1
I've installed Java SE 6, but when I enter `java -version`, it tells me it's still running SE 5. I know the update doesn't replace SE 5 with 6, but how do I use it?
 
Joined
Aug 2, 2005
Messages
1,229
Reaction score
75
Points
48
Your Mac's Specs
2.6GHz Core i7 15" MacBook Pro - 8GB DDR3 SDRAM - 750GB 7200 RPM HDD - GeForce 650M GT 1GB VRAM
"/Applications/Utilities/Java/Java Preferences.app"

Execute that, then drag the different Java versions around to rank them by preference. Save changes, quit out of the program, and the deed is done.

I just verified this myself by making Java 6 my first choice, and here is my output in the Terminal:

$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top