On Tue, May 12, 2009 at 9:10 AM, Russel Winder <[email protected]> wrote:
[...] > Debian/Ubuntu, Solaris and Mac OS X (possibly others but these are the > ones I know) have a mechanism for defining a default Java installation. > So if the user doesn't define a JAVA_HOME, there is a well defined > algorithm for testing to see if there is a Java installation. This > algorithm is encoded in the Groovy startup sequence (sort of). If there > is an issue then it needs raising for Groovy, Gradle and Gant. After investigating a little further, I think the issue is actually a bug in OS X. From http://developer.apple.com/qa/qa2001/qa1170.html "Java Home. Many Java applications require the identification of a "Java Home" directory during installation. The equivalent on Mac OS X should always be /Library/Java/Home. This is actually a symbolic link to the current installed J2SE version, and allows access to the bin subdirectory where command line tools such as java, javac, etc. exist as expected" And this is what Gradle uses. But the problem is, if you switch the default Java version using the supplied OS X GUI tool, only the paths to java, javac etc are changed, not the contents of the above directory. /Jeppe --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
