JDK1.7 on IDEA 10.5 and MacOS Permanently deleted user Created October 09, 2011 12:46 Anyone tried the JDK 1.7 Mac Dev Preview on IDEA 10.5?IDEA allows me to add the SDK, but doesn't recognize any Java type (eg. java.lang.String).
There is another issue reported that this JDK is not even recognized:
http://youtrack.jetbrains.net/issue/IDEA-75407 .
If you can add it, see the Classpath tab an try to add all the jars from the JDK to this tab manually.
Could someone post a result of "readlink `which java`" command?
Adding the jars manually works for me, thx a lot!!!
$ readlink `which java`
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
That doesn't look right. The 1.7 preview is installed in the /Library/Java/JavaVirtualMachines directory, not in /System/Library.
For me:
$ readlink `which java` # readlink returns nothing
$ which java
/Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer Preview.jdk/Contents/Home/bin/java
edit: Of course... I set my PATH to `/usr/libexec/java_home`/bin, which will override the default /usr/bin/java - which returns the previous poster's result.