Java Programming with Microsoft Visual Studio Code

2020-06-01 03:49发布

I downloaded language support for Java by Red Hat in Microsoft Visual Studio Code, enter image description here

but I got a problem as shown in the above picture.

So I tried to set my JDK path in the settings.json file in VSCode:

"java.home": "C:/ProgramFiles/Java/jdk1.8.0_111"

But the problem is still not solved.

Do you know how to solve this problem?

7条回答
迷人小祖宗
2楼-- · 2020-06-01 04:14

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.

查看更多
登录 后发表回答