[Swift-devel] JAVA_HOME misdetection

Ben Clifford benc at hawaga.org.uk
Mon Feb 9 11:01:29 CST 2009


Another thing i've seen is when java is on the path, but JAVA_HOME is not 
set, and java is found not-in-JAVA_HOME, like this:

$ which java
/usr/bin/java
$ ls -l /usr/bin/java
lrwxr-xr-x   1 root  wheel  77 Feb  3 11:11 /usr/bin/java -> 
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/java

then setting JAVA_HOME incorrectly to /usr/ in this case breaks things, 
when leaving it entirely unset does not break things.

This is on my os x box.
 
-- 



More information about the Swift-devel mailing list