Skip to content

Improve failed JDK detection diagnostic #835

Closed

Description

@yossefEl

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

Activity

  1. Eskibear commented on Mar 13, 2019

    @Eskibear
    Contributor

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

  2. muha365 commented on Mar 13, 2019

    @muha365

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

  3. added this to the Mid March 2019 milestone on Mar 14, 2019
  4. fbricon commented on Mar 14, 2019

    @fbricon
    Collaborator

    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.

  5. changed the title [-]VS Code settings does not point to a JDK.[/-] [+]Improve failed JDK detection diagnostic[/+] on Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions