question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JAVA_HOME is not pointing to a JDK.

See original GitHub issue

[provide a description of the issue]

Environment
  • Operating System: macOS Mojave

  • JDK version: OpenJDK 11.4

  • Visual Studio Code version: 1.38.1

  • Java extension version: 0.48.0

Steps To Reproduce
  1. Opening Java Project
Current Result

After opening a Java project, the configure window pops up and shows, that the JAVA_HOME is set, but it’s not pointing to a JDK. Bildschirmfoto 2019-09-16 um 14 41 50

The JAVA_HOME path is correctly set.

Expected Result

JDK should be found.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:29 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
prasada7commented, Jan 24, 2020

I had the same problem on my Mint. The problem was fixed after I reinstalled openjdk-11. I used the following command. Should work for Ubuntu as well. sudo apt install openjdk-11-*

3reactions
NoxFlycommented, Oct 6, 2020

Got the same error on Linux Debian 10.5 (buster). I realized that if I was launching VSC by the application itself, it was doing this error, while if I launch VSC through the terminal, all’s good. Maybe user’s settings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ant "JAVA_HOME does not point to the JDK" - but it does
Try the following command in a terminal: "%JAVA_HOME%\bin\javac". If the command does not exist that proves you don't have a JDK installed. –...
Read more >
Maven Error “JAVA_HOME should point to a JDK not a JRE”
In this tutorial, we're going to talk about an exception that Maven throws when misconfigured: JAVA_HOME should point to a JDK, not a...
Read more >
Installing the JDK Software and Setting JAVA_HOME
Procedure To Install the JDK Software and Set JAVA_HOME on a Windows System · Right click My Computer and select Properties. · On...
Read more >
JAVA_HOME does not point to the JDK - Struts - CodeRanch
You have pointed JAVA_HOME at the JRE, not the JDK. You need to point it at wherever you installed the JDK. reply ·...
Read more >
Troubleshooting on Windows - GitHub Pages
DAISY Pipeline 2 uses the Windows environment variable JAVA_HOME to find your Java installation folder. This error can occur if the variable is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found