Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetBeans ignores module path in VM Options #45

Open
mklinik opened this issue Nov 21, 2019 · 2 comments
Open

NetBeans ignores module path in VM Options #45

mklinik opened this issue Nov 21, 2019 · 2 comments

Comments

@mklinik
Copy link

mklinik commented Nov 21, 2019

I followed the instructions on how to set up a JavaFX project in NetBeans (Non-modular from IDE) https://openjfx.io/openjfx-docs/#IDE-NetBeans, but running the program did not work.

I added a global library, and added the JavaFX jar files as described in the guide. I then created a new project and added the global library to the compile classpath, and set the VM Options to the module path on my system --module-path /usr/share/openjfx/lib/ --add-modules javafx.controls.

When running the program I got the error message java.lang.module.FindException: Module javafx.controls not found. It seems that NetBeans ignores the option --module-path in Project Settings / Run / VM Options. Instead, I added the JavaFX global library under Project Options / Libraries / Run / Modulepath, and only the option --add-modules javafx.controls to VM Options. Doing so makes the program compile and run just fine.

I tried it both on Linux and Windows, and got the same error message and same solution. NetBeans 11.2, JDK 13, several different versions of openjfx.

When compiling and running the hello world JavaFX project from the command line with javac and java directly, --module-path works just fine, so it does not seem to be a problem with my installation.

Maybe you want to update the instructions in the guide.

@Zharks
Copy link

Zharks commented Dec 2, 2019

This worked for me, thank you!

@nvaranki
Copy link

Take a look on [solution]https://github.com/openjfx/openjfx-docs/issues/115]. It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants