I recently wanted to try Java, so i started out with Hello World! I installed OpenJDK 11 for VSCode and ran the program, but it produced the following error:
Running the contributed command: 'java.execute.workspaceCommand' failed.
I looked at the Java runtime configuration and it detected the JDK, but it showed that error!
javac Helloworld.javato generate .class file. Then runjava Helloworldto show result. if there's no error shown, try to clean java workspace and reinstall Java Extension Pack in VS Code.