Java Programming with Microsoft Visual Studio Code

后端 未结 7 1911
终归单人心
终归单人心 2021-02-07 06:43

I downloaded language support for Java by Red Hat in Microsoft Visual Studio Code, \"enter

<
相关标签:
7条回答
  • 2021-02-07 06:59

    If you are using bash from VSCode, should use:

    export JAVA_HOME=/c/Program\ Files/Java/jdk1.8.0_172

    You can use this in the terminal there.

    0 讨论(0)
  • 2021-02-07 07:05

    In case this question is still open.

    Try placing a space between the words, Program and Files, so it reads:

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

    0 讨论(0)
  • 2021-02-07 07:06

    You have to restart VS Code after entering the java.home variable in the settings file.

    Alternatively, setting that variable isn't even required. You can remove it from your settings and VS Code will automatically check your user/system environment variables for JDK_HOME and JAVA_HOME.

    See "Setting the JDK" at https://marketplace.visualstudio.com/items?itemName=redhat.java

    For information on how to set the environment variables, see Environment variables for java installation

    0 讨论(0)
  • 2021-02-07 07:06

    You only need to put the space in between Program and files like:

    java.home :- "C:/Program Files/Java/jdk1.8.0_111"

    0 讨论(0)
  • 2021-02-07 07:13

    try to change path as follow:

    "java.home":"C:/Program Files/Java/jdk1.8.0_202"
    

    Make attention to the space in "Program Files" in the path.

    0 讨论(0)
  • 2021-02-07 07:20

    you should change the path to be like this:

    "java.home":"C:\\Program Files\\Java\\jdk1.8.0_111"
    
    0 讨论(0)
提交回复
热议问题