Open aeschli opened 4 years ago
@aeschli can you try debugging the vscode-java extension to see what's happening?
Sorry, I don't have the Java setup ready.
After I installed the latest Oractle JDK (11) and I added the JAVA_HOME
variable set the error went away.
Sorry, I don't have the Java setup ready. After I installed the latest Oractle JDK (11) and I added the
JAVA_HOME
variable set the error went away.
Can You Please Add Whole Code Where to Write 'JAVA_HOME'
@aeschli sorry to bring back an old thread, but I have a question. Is the JAVA_HOME
variable a PATH variable? If so, what is the directory?
@Ghack9 @tails618 A simple way is to configure it in the VS Code User Settings. You could open User Settings via shortcut below, then search java.home
and set your JDK installation directory to the java.home
setting.
⌘
+ ,
Ctrl
+ ,
Sorry, I don't have the Java setup ready. After I installed the latest Oractle JDK (11) and I added the
JAVA_HOME
variable set the error went away.Can You Please Add Whole Code Where to Write 'JAVA_HOME'
As @testforstephen said
How to get the
Java_HOME
echo $(readlink -f /usr/bin/java | sed "s:bin/java::")
Version: 1.46.0-insider Commit: 9f89da69154ac6c99dfa7c82986e2df95b7bbe0b Date: 2020-06-08T22:13:15.761Z Electron: 7.3.1 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Linux x64 5.3.0-55-generic
Starting up the Java extension I get the following error:
Same as #1449, but different stack trace.
Checking my env, JAVA_HOME is not set