英文:
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>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论