英文:
How To Configure and Download Java JDK in ubuntu for VS code
问题
我尝试在Java中运行VS Code,但VS Code显示一个错误(未指向JDK)。
在Ubuntu中有没有任何方法可以在VS Code中运行Java程序。
英文:
I've tried to run vscode in java but the vs code is showing an error of (Not Pointing To JDK).
Is there is any way to run java programs in vs code in ubuntu.
答案1
得分: 0
从这里安装Java 从这里安装Java 从这里安装Java 从这里安装Java 从这里安装Java
https://code.visualstudio.com/docs/java/java-debugging#:~:text=您可以手动安装,Code for the first time.
英文:
Install java from here Install java from here Install java from here Install java from here Install java from here
答案2
得分: 0
最简单的方法是运行:
sudo apt-get install openjdk-
然后按下TAB键多次查看可用选项。
然后您可以选择一个特定的jdk。
一些示例:
sudo apt-get install openjdk-14-jdk
sudo apt-get install openjdk-13-jdk
sudo apt-get install openjdk-11-jdk
之后,您可以重新启动VSCode。
英文:
The simplest way is to run:
sudo apt-get install openjdk-
and to press TAB several times for available options.
You will then choose a specific jdk.
Some examples:
sudo apt-get install openjdk-14-jdk
sudo apt-get install openjdk-13-jdk
sudo apt-get install openjdk-11-jdk
Afterwards you can restart VSCode.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论