-
Notifications
You must be signed in to change notification settings - Fork 61
No Java runtime found #93
Comments
I know its a little old, but I was having a similar issue, try to setup the |
Thanks - I'm still having the problem so I will take any help i can get. :) $ more .pam_environment and then restarted atom. I'm still having the same problem (i tried with and with out the bin folder specified). I thought it might be a permissions problem but everyone has access to java and javac (same permissions not shown). Does atom run a nobody? $ ls -la /usr/lib/jvm/java-11-openjdk-amd64/bin/java |
JAVA_HOME variable is not supposed to have the
At least it is what we do in windows. |
That still does not do it. |
I have the same issue using it on Fedora r31 Didn't found a solution yet. |
I've been facing the same issue on mac os - though the java path is set correctly, I still get "Error: Could not find or load main class'". Appreciate if anyone can help me |
In your ide java configuration, remove the bin folder directory... |
Hi, Ide-java access the java path with the follow code:
When Java path is set correctly following one of the 3 ways (in settings, or in environment variables of OS) getJavaVersionFromOutput (output) {
const match = output.match(/ version "(\d+(.\d+)?)(.\d+)?(_\d+)?(?:-\w+)?"/)
return match != null && match.length > 0 ? Number(match[1]) : null
} The problem is that with the OpenJDK version 17.0.4.1, the regex will return null.
The code below returns null. 'openjdk version "17.0.4.1" 2022-08-12 OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1) OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode, sharing)'.match(/ version "(\d+(.\d+)?)(.\d+)?(_\d+)?(?:-\w+)?"/) The solution would be to adapt the regex pattern for all possible output version. The second sub-group starting from the last of the regex pattern |
I just installed atom and ide-java on linux mint. No matter what I set the java home to for IDE-java I get a IDE-Java could not lanuch your java runtime. No java runtime found at:... error.
I've tried several things restarted, set the environment variable for JAVA_HOME (/usr/lib/jvm/java-11-openjdk-amd64), re-installed ide-java. java and javac work fine from the command line and atom just does not seem to be able to see it. The only thing in the console window is:
Uncaught (in promise) undefined ... server-manager.js line 5 over and over.
Any help you have would be great. Thank you.
The text was updated successfully, but these errors were encountered: