Skip to content

Java FX projekt add dependency failed #864

Open
@andteki

Description

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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions