Home > Software engineering >  Can't get Java to work in Visual Studio Code
Can't get Java to work in Visual Studio Code

Time:11-21

I've been trying to install java on vs code for a couple hours now and I can't seem to get it to work. I've already downloaded all the extensions necessary and I've downloaded the coding pack from code

and this is the output when I click that run button in the top right: output

Does anybody have any suggestions? the coding pack was supposed to come with a jdk, its working for everybody else so I'm not sure what the issue is.

CodePudding user response:

It seems like you don't have correctly installed java sdk on your system.

Try to check java sdk installation with following commands:

java --version
javac --version

In case you don't see reasonable output, try to install java sdk, go to the Java enter image description here

Getting Started with Java in VS Code.

  • Related