-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Hi,
in order to have JavaFX11 running under Netbeans 9 and Gradle some tweaks are required (see https://stackoverflow.com/questions/52140346/java11-javafx-and-maven-will-not-run-outside-of-netbeans-ide-9/52142071#52142071). Especially, the standard "Debug" tasks isn't working since it also needs --add-exports and so on.
Using the tip from openjfx/samples#2 I have managed to add a new runDebug task that is working. I can add the same for the "Debug" task but then I seem to overwrite that task since I now must manually start the debugger.
How would I need to add information like
jvmArgs = [
'--module-path', classpath.asPath,
'--add-modules', 'javafx.controls,javafx.graphics,javafx.base,javafx.fxml,javafx.web,javafx.swing,javafx.media',
// various exports needed at run time - see https://stackoverflow.com/a/52142071
'--add-exports', 'javafx.graphics/com.sun.javafx.util=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx.reflect=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx.beans=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx.logging=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx.runtime=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx.collections=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.prism=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-exports', 'javafx.media/com.sun.media.jfxmedia=ALL-UNNAMED',
'--add-exports', 'javafx.media/com.sun.media.jfxmedia.events=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED'
]
to the Debug task? I have tried to add above jvm commands lines via Properties -> Built-In Tasks but I failed to translate '--module-path', classpath.asPath into something valid...