Skip to content

Commit f65179e

Browse files
authored
Merge pull request #728 from hx2A/javafx-warning-java-25
eliminate javafx warning on java 25
2 parents efc6535 + 0b13f23 commit f65179e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • py5_resources/py5_module/py5_tools

py5_resources/py5_module/py5_tools/jvm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def _start_jvm() -> None:
166166
if "--enable-native-access=ALL-UNNAMED" not in _options:
167167
_options.append("--enable-native-access=ALL-UNNAMED")
168168

169+
if "--enable-native-access=javafx.graphics" not in _options:
170+
_options.append("--enable-native-access=javafx.graphics")
171+
169172
jpype.startJVM(default_jvm_path, *_options, convertStrings=False)
170173

171174

0 commit comments

Comments
 (0)