mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
working on JavaFX on Windows, more runtime problems, needing exports
This commit is contained in:
@@ -440,6 +440,13 @@ public class JavaBuild {
|
||||
}
|
||||
|
||||
|
||||
/** Returns the dummy "module" path so that JavaFX doesn't complain. */
|
||||
public String getModulePath() {
|
||||
// Just set this to the main core/library directory to pick up JavaFX
|
||||
return mode.getCoreLibrary().getLibraryPath();
|
||||
}
|
||||
|
||||
|
||||
/** Return the java.library.path for this sketch (for all the native DLLs etc). */
|
||||
public String getJavaLibraryPath() {
|
||||
return javaLibraryPath;
|
||||
|
||||
@@ -373,6 +373,20 @@ public class Runner implements MessageConsumer {
|
||||
|
||||
params.append(javaLibraryPathParam);
|
||||
|
||||
// TODO this should only happen with sketches using the JavaFX library
|
||||
// https://github.com/processing/processing4/issues/209
|
||||
params.append("--module-path");
|
||||
params.append(build.getModulePath());
|
||||
params.append("--add-modules");
|
||||
//params.append("javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web");
|
||||
params.append("javafx.base,javafx.graphics,javafx.swing");
|
||||
// TODO Presumably, we need to move away from com.sun.* classes?
|
||||
// https://github.com/processing/processing4/issues/208
|
||||
params.append("--add-exports");
|
||||
params.append("javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED");
|
||||
params.append("--add-exports");
|
||||
params.append("javafx.graphics/com.sun.glass.ui=ALL-UNNAMED");
|
||||
|
||||
params.append("-cp");
|
||||
params.append(build.getClassPath());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user