We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e534ea + 0ae4b0a commit 76d6814Copy full SHA for 76d6814
1 file changed
py5_resources/py5_module/py5_tools/jvm.py
@@ -166,7 +166,10 @@ def _start_jvm() -> None:
166
if "--enable-native-access=ALL-UNNAMED" not in _options:
167
_options.append("--enable-native-access=ALL-UNNAMED")
168
169
- if "--enable-native-access=javafx.graphics" not in _options:
+ if (
170
+ any([f.name == "javafx.graphics.jar" for f in _classpath])
171
+ and "--enable-native-access=javafx.graphics" not in _options
172
+ ):
173
_options.append("--enable-native-access=javafx.graphics")
174
175
jpype.startJVM(default_jvm_path, *_options, convertStrings=False)
0 commit comments