在Manjaro中,VSCode无法识别已安装的JDK。

huangapple go评论74阅读模式
英文:

VScode in manjaro is not recognizing installed jdk

问题

我在Manjaro上安装了JDK,但VScode扩展无法识别已安装的JDK...
我使用了archlinux-java status并获得了以下结果:

  java-14-openjdk
  java-8-openjdk(默认)```

<details>
<summary>英文:</summary>

I have jdk installed in manjaro but VScode extensions are not recoginizing the installed jdk...
I have used ```archlinux-java status``` and got this: 
```Available Java environments:
  java-14-openjdk
  java-8-openjdk (default)


</details>


# 答案1
**得分**: 2

首先:
确保您安装了正确的JDK,您需要安装两个软件包:
[1] **jdk-openjdk** 和
[2] **jre-openjdk**

其次:您需要通过在终端中输入以下命令将您新安装的JDK设置为默认:

     sudo archlinux-java set java-[版本号]-openjdk

<details>
<summary>英文:</summary>

First of all:
Make sure you have right jdk installed u need two packages:
 [1] **jdk-openjdk** and
 [2] **jre-openjdk**
Second: you will have to set your newly installed jdk as default by putting this command in terminal:

     sudo archlinux-java set java-[version_number]-openjdk

</details>



huangapple
  • 本文由 发表于 2020年8月15日 15:17:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/63423571.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定