Skip to content

Commit 0b13f23

Browse files
committed
eliminate javafx warning on java 25
1 parent efc6535 commit 0b13f23

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)