skip to Main Content

When I open the Java project in VS Code, it can’t recognize Java language and the Java build status is always "Building" and when I see the java log the build status doesn’t show anything.

I have already installed Java extension pack.

It makes it hard for me to import Java libraries and also hard to get autocomplete when I code Java.

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    I have found the solution, by adding -Xlog:jni+resolve=off to java.jdt.ls.vmargs and it's solved


  2. First, you must install everything from the Extension Pack for Java and the Language Support for Java(TM) by Red Hat extension.

    Second, you have to make sure you open the correct project folder. Because VS Code takes the opened folder as the workspace, So pay attention to the folder hierarchy you open.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search