Skip to content

Improve failed JDK detection diagnostic #835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yossefEl opened this issue Mar 13, 2019 · 3 comments
Closed

Improve failed JDK detection diagnostic #835

yossefEl opened this issue Mar 13, 2019 · 3 comments

Comments

@yossefEl
Copy link

yossefEl commented Mar 13, 2019

Thank you in advance 😄 😃

I set up VScode as described on Extension instruction(JAVA_HOME, JDK version ..) but i still getting this error.

Environment
  • Operating System: Windows 10
  • JDK version: jdk1.8.0_171
  • Visual Studio Code version: 1.32.1
  • Java extension version: 0.40.0

Error

error1

the VSCode settings

Capture

JDK envirenment varibale

jdk

@Eskibear
Copy link
Contributor

Dude, remove the "bin" part please. Your java home should be "C:\Program Files\Java\jdk1.8.0_171" .

@muha365
Copy link

muha365 commented Mar 13, 2019

You can open command line elevated as administrator and execute the next line
SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_171"

@fbricon
Copy link
Collaborator

fbricon commented Mar 14, 2019

This mistake is now better captured and surfaced to the user:
Screen Shot 2019-03-14 at 4 48 47 PM

The "Open Settings" action will be available only if the java.home is already being set.

@fbricon fbricon changed the title VS Code settings does not point to a JDK. Improve failed JDK detection diagnostic Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants