michaelgz13
michaelgz13

Reputation: 55

How to add multiple modules with -add-modules

I would like to add multiple modules through the VM options in NetBeans. Currently i have just added 1 module( javafx.controls).

enter image description here

Here is the directory that has all the modules including the one already added. enter image description here

Does anyone know the separating delimiter?

Upvotes: 2

Views: 5726

Answers (3)

user19485562
user19485562

Reputation:

--add-opens=java.base/java.lang.reflect=ALL-UNNAMED

maybe this helps.

Upvotes: 0

sbrbot
sbrbot

Reputation: 6447

To run JavaFX you have to tell your VM where modules are:

--module-path /Users/sbrbot/JavaFX/javafx-sdk-11.0.2/lib

and then tell what modules to use:

--add-modules javafx.controls,javafx.fxml

Upvotes: 1

Juan Moreno
Juan Moreno

Reputation: 2785

You can use the comma character: ,

The documentation says:

--add-modules <module name>[,<module name>...]
              root modules to resolve in addition to the initial module.
              <module name> can also be ALL-DEFAULT, ALL-SYSTEM,
              ALL-MODULE-PATH.

Upvotes: 4

Related Questions