How can I find classpath for Java in Visual Studio Code?

Viewed 2620

I try to debug Java code on Visual Studio Code, but I always get this error Failed to resolve classpath: Main class '<name of mainclass here>' doesn't exist in the workspace. I need help. How can I find mainclass or classpath for Java?

1 Answers

Did you install the Code Runner extension? You need some kind of extension to run/debug java in vscode.

Related