Skip to content

Java language support requires Java 8 (using C:\ProgramData\Oracle\Java\javapath\java.exe) #441

Closed

Description

@cryptojonnyboy

[provide a description of the issue]
Dear community im getting this error messages. How can I solve this?

The java.home variable defined in VS Code settings points to a missing folder
Java language support requires Java 8 (using C:\ProgramData\Oracle\Java\javapath\java.exe)
Thank you in advance.
java

Environment
  • Operating System: win 10
  • JDK version:
  • Visual Studio Code version:
  • Java extension version:
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[attach a sample project reproducing the error]
attach logs

Current Result
Expected Result
Additional Informations

Activity

  1. fbricon commented on Feb 14, 2018

    @fbricon
    Collaborator

    Seems like a duplicate of #431 (comment). Make sure you uninstall georgewfraser.vscode-javac

  2. cryptojonnyboy commented on Feb 14, 2018

    @cryptojonnyboy
    Author

    @fbricon Thank you for you help. The first one got solved . The second one is a little harder for me to solve.

    The java.home variable defined in VS Code settings points to a missing folder

  3. fbricon commented on Feb 14, 2018

    @fbricon
    Collaborator

    make sure java.home points to the java home folder, not java.exe

  4. cryptojonnyboy commented on Feb 14, 2018

    @cryptojonnyboy
    Author

    @fbricon Copy pasted this. I still cant star writing codes :(
    java 2

    C:/Program Files/Java/jdk1.8.0_131

  5. fbricon commented on Feb 14, 2018

    @fbricon
    Collaborator

    can you try with backslashes?
    C:\Program Files\Java\jdk1.8.0_131
    or
    C:\Progra~1\Java\jdk1.8.0_131

  6. cryptojonnyboy commented on Feb 14, 2018

    @cryptojonnyboy
    Author

    @fbricon I tried both of them it is quite presistent. Anymore things I can try?

  7. snjeza commented on Feb 14, 2018

    @snjeza
    Collaborator

    Could you try

    "java.home": "C:\\Program Files\\Java\\jdk1.8.0_131"
    
  8. cryptojonnyboy commented on Feb 15, 2018

    @cryptojonnyboy
    Author

    @snjeza @fbricon I installed the software on my other pc with windows 7 its working like charm there so lets hope its stays that way. Well I tried your code and its not working @snjeza. Thank you @fbricon and @snjeza.

  9. cryptojonnyboy commented on Feb 15, 2018

    @cryptojonnyboy
    Author

    @snjeza I tried your code with different pathname since my computer has 32-bit OS and 64-bit and the message does not appear anymore. So I guess its working thank you!

    "java.home": "C:\Program Files\Java\jdk1.8.0_131"

  10. fbricon commented on Feb 15, 2018

    @fbricon
    Collaborator

    @cryptojonnyboy so you made it work on your win10 machine with "C:\Program Files\Java\jdk1.8.0_131"? or were you referring to your win7 pc?

  11. cryptojonnyboy commented on Feb 15, 2018

    @cryptojonnyboy
    Author

    @fbricon Hello, its working on my windows 10 machine with this code "java.home": "C:\\Program Files\\Java\\jdk1.8.0_131"

  12. fbricon commented on Feb 15, 2018

    @fbricon
    Collaborator

    Ok, I've made the description more helpful, hopefully:

    screen shot 2018-02-14 at 9 05 33 pm

  13. cryptojonnyboy commented on Feb 15, 2018

    @cryptojonnyboy
    Author

    Haha thank you nice!! @fbricon

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions