logo       

Re: Setting default Java: msg#01596

java-dev

Subject: Re: Setting default Java

In my knowledge, NetBeans 6.5.1 on Mac use "/System/Library/Frameworks/ JavaVM.framework/Home" as default JDK location in
its ant settings. Take a look at the file "/Applications/NetBeans/ NetBeans 6.5.1.app/Contents/Resources/NetBeans/java2/ant/bin/ant".

I manually change the link "/System/Library/Frameworks/ JavaVM.framework/Home" to 1.6 to have NetBeans build 1.6 classes.


On 2009/7/30, at 下午 11:33, Mike Swingler wrote:

On Jul 30, 2009, at 8:14 AM, James Rome wrote:

I used the Java preferences app in Applications/Utilities to change
Java to 1.6.

But /Library/Home/Java/Home still points to 1.5. How do I change this?

Don't worry about /Library/Java/Home, it's only there for backwards
compatibility with really old apps. Set your $JAVA_HOME to the output
of /usr/libexec/java_home instead. It tracks the setting in Java
Preferences.app, which is set for your user, unlike symlinks on disk
that have to be modified by root, and affect every user.

If you need something to put in your .bashrc file, try this:

export JAVA_HOME=`/usr/libexec/java_home`

Cheers,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (Java-dev@xxxxxxxxxxxxxxx)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/ckchen%40realtek.com

This email sent to ckchen@xxxxxxxxxxx


------Please consider the environment before printing this e-mail.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (Java-dev@xxxxxxxxxxxxxxx)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/maillists%40codeha.us

This email sent to maillists@xxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise