Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java "'java.execute.workspaceCommand' failed" in VSCode

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!

like image 698
MaxMobileYT Avatar asked Mar 17 '21 03:03

MaxMobileYT


1 Answers

  1. Go to extensions tab
  2. Search for Java extension package
  3. Click on disable. If it gets disabled, well and good otherwise a pop-up may appear at the bottom, in the bottom of pop-up, click on disable for all windows or something similar text.
  4. Enable the Java extension package again.

In my case, it worked after step 4, let me know about yours

like image 175
user9072810 Avatar answered Oct 18 '22 03:10

user9072810