Intellij error = 2 No such file or directory

Installed intellij and added sdk path to the project structure, but when I try to start, I get:

Error: Cannot run program "/home/$USER/java/jdk1.8.0_121/bin/java" 
(in directory"/home/$USER/.intelliJIdea2016.3/system/compile-server"):
error=2, No such file or directory

Both files (/home/$USER/java/jdk1.8.0_121/bin/java and / home / $ USER / .intelliJIdea2016.3 / system / compile-server) exist.

I am using Ubuntu 16.10

+6
source share
1 answer

The answer is from here. Change the jdk path in IntelliJ 13 when compiling from the 32-bit folder of the program file to the 64-bit one , it worked for me

From the menu: FileProject Structure....

On the left, below the "Platform Settings" you have the "SDK": click on it; You can add your new JDK here.

, " ", "": JDK.

+6

Source: https://habr.com/ru/post/1015825/


All Articles