Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDK 1.8 not supported by vs code?

enter image description here

Does VS Code (code-runner extension) support JDK 1.8? In the morning I was using JDK 12 , but then I downgraded to JDK 1.8 to try out applet viewer and stuff. Unfortunately now it doesn't even highlight the code.

Someone please tell me the problem and its solution.


2 Answers

Java 1.8 was no longer supported since "Language support for Java" extension upgrade to 0.68.0, I downgraded to 0.64.1 which works for me.

like image 91
suwen Avatar answered Oct 18 '25 21:10

suwen


JDK 1.8 is supported by VSCode.

Read https://code.visualstudio.com/docs/languages/java and install needed extensions.

Update 2021

Currently to use the Java extension in VSCode its required JDK 11, but you can still use older versions of JDK in your projects. See this to get information about how to configure other JDK version for your project.

like image 33
un0tec Avatar answered Oct 18 '25 21:10

un0tec