Program doesn't run - SDK error - Linux Mint 18.2

已回答

Hi,

I've been trying for hours to configure the IntelliJ Java SDK. I've tried both Open JDK 8 and the official Java 8 JDK.

When I navigate to the Open JDK it says the path is not valid, however the official version's path does work but when I try an run the program I get this error:

Error:Cannot run program "/usr/lib/jdk1.8.0_131/bin/java" (in directory "/home/matt/.IdeaIC2017.1/system/compile-server"): error=2, No such file or directory

I'm using Linux Mint 18.2.

Can someone please help.

0

Please provide the output from `/usr/lib/jdk1.8.0_131/bin/java -version`.

0
Avatar
Permanently deleted user

/usr/lib/jdk1.8.0_131/bin $ java -version

openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

 

I'm not sure if that is the correct output for this path as after I couldn't get the official Java working I downloaded Open JDK from the repo.

0
Avatar
Permanently deleted user

I've removed the open JDK and reinstalled the Oracle's JDK but my system still fails to find anything when running the java -version command or the jdk1.8.0_131 -version.

I followed the installation instructions on the Oracle website.

I'm guessing the Java isn't being installed properly, is it different on Mint to other versions? I've not had trouble installing it on Debian or Elementary.

 

 

0

Did you remove and add the new JDK configuration from the new installation location in IntelliJ IDEA?

0
Avatar
Permanently deleted user

If you mean changing the path in the program structure then yes I did, but still the same error.

0

Please file a bug at https://youtrack.jetbrains.com/issues/IDEA and attach idea.log and build.log files. Make sure to enable debug logging for build.log per https://intellij-support.jetbrains.com/hc/articles/207241085. Reproduce the issue with Oracle JDK and attach the logs to the ticket in YouTrack.

0
Avatar
Permanently deleted user

Okay I'll do that thanks for your help.

I really wish Oracle would update their installation instructions or IntelliJ would just include a default SDK as standard, having the option to change it out to another if required, to save going through all of this mess. They can do it with Android Studio , why not IntelliJ.  

0

请先登录再写评论。