Home > Blockchain >  vscode can't recognize java project or can't detect java project how to fix?
vscode can't recognize java project or can't detect java project how to fix?

Time:08-11

Can anyone help me,

when I open the java project in VSCODE, 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

CodePudding user response:

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.

CodePudding user response:

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

CodePudding user response:

Are you transferring your project from any other IDE to Vs Code?

  • Related