Sublime Forum

Java Error No Java runtime present, requesting install


Hello! I am trying to run Java but keep on getting the error message:

No Java runtime present, requesting install.
[Finished in 0.1s with exit code 1]
[shell_cmd: javac “/Users/Ethan/Documents/Comp Sci /JavaTest.js”]
[dir: /Users/Ethan/Documents/Comp Sci ]
[path: /Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]

I’ve tried building a new system, using the system JavaC, and following the error code link. The link brought me to the update adobe page, which I did and it’s still not running. I’m using the latest version of sublime on my mac.



This issue is not directly related with Sublime Text but the fact the java compiler (javac) not being found in one of the path environment variables.

You’ll therefore get the same errors when trying to call javac from terminal.

You need to figure out where the java compiler is located and add that folder to your $PATH environment variables.