vscode-java-dependency icon indicating copy to clipboard operation
vscode-java-dependency copied to clipboard

Java FX projekt add dependency failed

Open andteki opened this issue 1 year ago • 6 comments

Since yesterday's "Project Manager for Java" release, additional dependencies added to JavaFX do not work.

I am making a Java FX project. This is based on Maven. It works.

When I add an extra dependency like Gson.

com.google.code.gson gson 2.11.0

I write in the code:

Gson gson = new Gson();

I import as usual.

The dependency cannot be used. VSCode says Gson cannot be resolved. It is there in the pom.xml file, and the import is also there in the code.

I saw that other people had previously written that, due to modularization, the following must be entered in the module-info.java file:

requires com.google.gson;

But even this instruction gives me trouble, you can't even find the module here.

I used it 3 days ago and there were no problems with it.

andteki avatar Nov 07 '24 14:11 andteki