Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More on NetBeans failure to start



On Sep 28, 2008, at 12:04 PM, Gary Nunes wrote:

Maarten Hazewinkel wrote (9/28/08 6:07 AM):

<snip>

which java
(see which java executable is used. Should be /usr/bin/java)

/Library/Java/Home/bin/java

NOTE: Some time in distant memory I read (in some Apple document) that
JAVA_HOME should be set to "/Library/Java/Home" rather then to something
more explicit. This may explain the result of the "which java" command (as
opposed to your expected result).

In this case, you probably do not want to define $JAVA_HOME. If you need to use a $JAVA_HOME, we generally suggest using /Library/Java/ Home, because it will always point to the preferred JVM version, as defined by Apple. In this case however, you almost certainly want your Java executable to be /usr/bin/java, which will dynamically re-exec() the version of Java you drag to the top of your "Java application versions" section of Java Preferences.


Best of luck,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: More on NetBeans failure to start (From: Gary Nunes <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.