Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenJDK or Sun Java for IntelliJ IDEA [duplicate]

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?

like image 580
Dennis Ruiz Avatar asked Mar 12 '12 19:03

Dennis Ruiz


2 Answers

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.

like image 197
Bit-Man Avatar answered Sep 20 '22 13:09

Bit-Man


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.

like image 44
CrazyCoder Avatar answered Sep 20 '22 13:09

CrazyCoder