问题描述
我安装了openjdk 1.7.0并在IntelliJ 10.5中设置它
I installed openjdk 1.7.0 and set it up in IntelliJ 10.5
当我编译(任何东西)时我收到错误致命错误:无法找到包java .lang in classpath或bootclasspath。
When I compile (anything) I get the error "Fatal Error: Unable to find package java.lang in classpath or bootclasspath".
我看了这个问题:
IntelliJ给出了致命错误:无法在classpath或bootclasspath中找到包java.lang,但是lib目录中的所有jar文件都已添加。
I looked at this question:IntelliJ gives Fatal Error: Unable to find package java.lang in classpath or bootclasspath but all jar files inside the lib directory are already added.
推荐答案
好的。我错了,并没有添加所有的罐子。我在'lib'以外的(子)目录中找到了更多。手动添加所有这些后一切都很好。似乎甚至IDEA 10.5.2还不喜欢openJDK中的结构。
Ok. I was wrong there weren't all jars added. I found some more in (sub)directories other than 'lib'. After adding all those manually everything is fine. Seems like even IDEA 10.5.2 does not like the structure in openJDK yet.
这篇关于Java 7&&的IntelliJ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!