JDK1.7 on IDEA 10.5 and MacOS

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).

5 comments
Comment actions Permalink

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.

0
Comment actions Permalink

Could someone post a result of "readlink `which java`" command?

0
Comment actions Permalink

Adding the jars manually works for me, thx a lot!!!

0
Comment actions Permalink

$ readlink `which java`
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.