This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Mac OS and the fly likes Helping Setting JDK 1.6 in Leopard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Helping Setting JDK 1.6 in Leopard" Watch "Helping Setting JDK 1.6 in Leopard" New topic
Author

Helping Setting JDK 1.6 in Leopard

Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Hello again,

Need assistance with setting the JDK in OS X Leopard to 1.6.

I did the following steps:

(1) cd /System/Library/Frameworks/JavaVM.framework/Versions/

(2) rm -rf CurrentJDK

(3) ln -s 1.6.0 CurrentJDK

(4) Verified the new CurrentJDK alias by doing the following:


However, when I check the version of java from the command line, I get this:


When I checked which java this is what I got:


Has anyone set the JVM / JDK in OS X Leopard to 1.6?

Happy programming...
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

There's an app under Applications/Utilities/Java called JavaPreferences that lets you set what JRE/JDK you want to run as default, as well as various other options.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Nathan, thank you so much!

Excellent... I changed the order in the Java Preferences pane and now it works!


Happy programming...
Douglas Graham
Greenhorn

Joined: Jul 06, 2009
Posts: 10
Did you notice an increase in performance? I installed 1.6 this evening. Netbeans is now much faster. Yes!


If you don't do data, you don't do diddly!
Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
I didn't have time to check it out to that extent, per se.

NetBeans has evolved very nicely, but I am still an Eclipse guy...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Helping Setting JDK 1.6 in Leopard
 
Similar Threads
How to install mutiple Java OS's on Mac?
Java Problem running on Teminal in Mac OS X Leopard
MacOS 10.5.8 browsers and Java 1.6
How to uninstall / override previous Maven version on OS X Leopard?
PATH and CLASSPATH