本文介绍了用于IntelliJ IDEA的OpenJDK或Sun Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经运行IntelliJ IDEA与OpenJDK但在启动时从终端启动IntelliJ IDEA它显示我:
I have running IntelliJ IDEA with OpenJDK but at startup IntelliJ IDEA from terminal it shows me:
$ ./idea.sh
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre2-1)
OpenJDK Server VM (build 20.0-b12, mixed mode)
WARNING: You are launching IDE using OpenJDK Java runtime.
THIS IS STRICTLY UNSUPPORTED DUE TO KNOWN PERFORMANCE AND GRAPHICS PROBLEMS!
NOTE: If you have both Oracle (Sun) JDK and OpenJDK installed
please validate either IDEA_JDK, JDK_HOME, or JAVA_HOME environment variable points to valid Oracle (Sun) JDK installation.
See http://ow.ly/6TuKQ for more info on switching default JDK
Press Enter to continue.
我已经运行了intelliJ IDEA,因为它需要tools.jar,然后我有以下文件:
I have runing intelliJ IDEA because it requires "tools.jar", then I have that file on:
/usr/lib/jvm/java-6-openjdk-i386/lib
但tools.jar尚未结束:
/usr/lib/jvm/java-6-sun-1.6.0.26
but "tools.jar" isn't over: /usr/lib/jvm/java-6-sun-1.6.0.26
所以,我的问题是:有人在使用OpenJDK时遇到了问题吗?
So, my question is: someone had problems using OpenJDK?
推荐答案
I had problems with IntelliJ IDEA 11 and OpenJDK 6. When compiling it thrown the next error:
Error: *.class (No such file or directory)
切换到OpenJDK 7解决了这个问题。
Switching to OpenJDK 7 solved the problem.
这篇关于用于IntelliJ IDEA的OpenJDK或Sun Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!