Search code examples
javajava-8visual-studio-codevscode-code-runner

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.


Solution

  • 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.