You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed openjdk 16.0.1 via homebrew, and set corresponding path in java.home, but under "Java Tooling Runtime" tab of "Configure Java Runtime" page, nothing is not listed. FYI, I also have another two jdk 8 installed, and both 3 are written to java.configuration.runtimes, but "Installed JDKs" tab only shows those two jdk 8 installation.
Environment
Operating System: macOS Big Sur 11.2.3 (on Apple Silicon)
JDK version: installed path says 16.0.1, but java -version says 17, brew info openjdk says it's 17 preview
I installed openjdk 16.0.1 via homebrew, and set corresponding path in java.home, but under "Java Tooling Runtime" tab of "Configure Java Runtime" page, nothing is not listed.
"Configure Java Runtime" page uses the same logic as vscode-java extension to find the Java home. Did you see any popups about invalid Java home?
Typically, the Java home in macOS ends with */Contents/Home. In your case, it looks like the java.home you configured is some symbolic link. Could you try "java.home": "/opt/homebrew/Cellar/openjdk/16.0.1/libexec/openjdk.jdk/Contents/Home" or /usr/local/Cellar/openjdk/16.0.1/libexec/openjdk.jdk/Contents/Home?
"Installed JDKs" tab only shows those two jdk 8 installation.
We just searches the JDK home from the common places. In macOS, it's /Library/Java/JavaVirtualMachines. The directory /opt/homebrew/Cellar is not scanned.
I installed openjdk 16.0.1 via homebrew, and set corresponding path in
java.home
, but under "Java Tooling Runtime" tab of "Configure Java Runtime" page, nothing is not listed. FYI, I also have another two jdk 8 installed, and both 3 are written tojava.configuration.runtimes
, but "Installed JDKs" tab only shows those two jdk 8 installation.Environment
java -version
says 17,brew info openjdk
says it's 17 previewSome lines from
settings.json
:java -version
outputs:The text was updated successfully, but these errors were encountered: