Java Runtime could not be Located in Visual Studio Code

Asked

Viewed 1,202 times

5

I already have JDK installed, but Visual Studio Code does not recognize and presents the following message:

inserir a descrição da imagem aqui

What must I do for him to recognize? For I have the

Language Support For Java(TM),
Debugger for Java,
Java test runner, Maven for Java,
Java Extension Pack

installed.

What should I do for Visual Studio Code know the path of JDK?

  • Have you configured the java environment variable? https://www.devmedia.com.br/preparaca-do-ambiente-para-development-em-java/25188

  • No, but I’ll get into the link you sent.

2 answers

6


Visual Studio Code looks at variables JAVA_HOME and JDK_HOME.

On Windows, go to Control Panel (Control Panel), System (System), Advanced System Settings (Advanced System Settings) and click Environment Variables (Environment Variables) and seven both pointing to the location of your JDK.

0

  • 2

    It would be interesting to transcribe the solution in the link you submitted, even because it is in English

  • Links to external resources are welcome, but remember to provide a context for each link, so that your fellow users can have an idea of what it is and why it is here. Always highlight the most relevant part of an important link.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.