Compile project with Jdk 1.7
Mac OS X 10.8
IntelliJ IDEA 10.5.4
I installed jdk 1.7 from: http://jdk7.java.net/download.html It's jdk 7u6
I added 1.7 SDK to IntelliJ:
Updated Compiler settings: -target 1.7
Trying to rebuild the project, gives error "Unable to find package java.lang in classpath or bootclasspath"
:/
请先登录再写评论。
You might need to add the jre/lib/rt.jar file to your compiler classpath as well as the ones you have.
My Windows SDK has all these libraries:
And it doesn't have any of the jdk\lib\*.jar files you have listed.
(*Chris*)
Thanks, I added all the jars from the jre/lib and the compilation succeded. Thanks!