I am trying to install IDEA on Ubuntu 11.10. First, I installed openjdk-7-jdk
. Then I tried running the idea.sh
file as instructed. However it complains:
ERROR: cannot start IntelliJ IDEA.
No JDK found to run IDEA. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME
environment variable points to valid JDK installation.
Press Enter to continue.
Trying to echo
these three variables prints an empty line to the screen. How (and to what values) do I set these variables and proceed with the installation? Thanks.
UPDATE:
It's recommended to use the bundled JetBrains Runtime on Linux to run IntelliJ IDEA. At the moment IntelliJ IDEA requires Java 8 to run on this platform. It's possible to switch to a system or some other Java version, please check the FAQ.
Original answer (obsolete):
It's recommended to use OpenJDK 1.7+ or Oracle JDK to run IntelliJ IDEA on Linux, OpenJDK 1.6 is strictly unsupported because of the known performance and visual issues.
Starting from IntelliJ IDEA 16, custom JRE is bundled with Linux distributions.
The tricky part is that Oracle JDK is no longer distributed via .deb packages and you can't just install it with apt-get or Ubuntu Software Center.
Their site is also confusing and you can easily download JRE instead of the JDK (which will not work as IntelliJ IDEA needs tools.jar that is missing from JRE package).
Here is the correct URL for the JDK downloads (version 1.6.0_29). From this URL download the appropriate .bin file, for example jdk-6u29-linux-i586.bin if you need 32-bit Java or jdk-6u29-linux-x64.bin for 64-bit version.
to install in the current directory.
Inside bin/idea.sh add the following on the second line:
Normally resides under
/usr/lib/jvm/<YOUR_JDK>
. Now IntelliJ IDEA should start fine under Oracle JDK 1.6.0_29. You can verify it inHelp
|About
.i also face a question... in firs day all works without problems, but then... i solve a problem: add to file
idea.sh
line with path to JDKIDEA_JDK="/opt/java/32/jdk1.6.0_45/"
add after 46 line
if you had install java ,try
if you see like this
then you should edit .bash_profile,add
then execute
if you not install java,you should install manual or auto.
You install JDK 8 with:
Then, sometimes the problem lies on the default version of JAVA you are running. For this, use
update-alternatives
to modify it:See how I did it:
And now Intellij IDEA 2016.3 is running fine.
You can set
JAVA_HOME
variable and add to yourPATH
, by doing the following. As root open up/etc/bash.bashrc
and add the following to the end of the file.When you reboot, try running the following:
Here is a bash script for developers that installs IDEA so that you can run it from the shell via
idea.sh
It also: