Languages

Is there way to configure Java 19 (or upper) in VS Code?

5 points
Asked by:
kaya31
526

As I noticed, VS Code supports currently Java 8, 11 and 19.

Is there way to configure Java 19 (or upper) in VS Code?

JDK installation in VS Code.
JDK installation in VS Code.
1 answer
7 points
Answered by:
Root-ssh
178180

Prerequirements: installed Java 19 on your computer (read this article).

 

Under Windows:

  1. press Ctrl+Shift+P keys,
     
  2. find and select Preferences: Open User Settings (JSON) option,
     
  3. add "java.configuration.runtimes" configuration,
    e.g.:
    Note: you can use other JDK than Eclipse Adoptium.

 

Sometimes it may be needed to change Java version to 19 in pom.xml file when you use Maven project.
e.g.:

 

See also

  1. Java - download Adopt Open JDK for free - Java 8, 11, 16, 17, 19 or 20 
0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join