Java Programming with Microsoft Visual Studio Code

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

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

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

    My Visual Studio Code is set to use the 32 bit version of JDK

    A default java.exe is installed in your %SYSTEMROOT%\System32

    Check java version from command line:

    java -version

    You might need to add your version to PATH:

    set PATH=%PATH%;C:\Program Files (x86)\Java\jdk1.8.0_111\bin

    And set your system JAVA_HOME:

    setx -m JAVA_HOME "C:\Program Files (x86)\Java\jdk1.8.0_111"

    Restart cmd and try:

    echo %JAVA_HOME%

    Restart Visual Studio Code and be happy.

    Use set instead of setx for local user.

    0 讨论(0)
提交回复
热议问题