OpenJDK or Sun Java for IntelliJ IDEA [duplicate]

独自空忆成欢 提交于 2019-12-30 06:44:07

问题


Possible Duplicate:
Installing IDEA on Ubuntu 11.10

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.

I have runing intelliJ IDEA because it requires "tools.jar", then I have that file on:

/usr/lib/jvm/java-6-openjdk-i386/lib

but "tools.jar" isn't over: /usr/lib/jvm/java-6-sun-1.6.0.26

So, my question is: someone had problems using OpenJDK?


回答1:


I had problems with IntelliJ IDEA 11 and OpenJDK 6. When compiling it thrown the next error:

Error: *.class (No such file or directory)

Switching to OpenJDK 7 solved the problem.




回答2:


You can get full Oracle JDK with tools.jar on your Linux as described in this answer.

You can use OpenJDK on your own risk, but JetBrains will not accept support requests when you are running on it since the problems you want to report could be specific to this JDK.




回答3:


You have to move from OpenJDK to OracleJDK because of compatibility and performance issues. Have a look to this link to install Oracle JDK7 if you use Ubuntu.



来源:https://stackoverflow.com/questions/9673163/openjdk-or-sun-java-for-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!