Skip to content

Commit 6b24fda

Browse files
committed
mac: Add JVM options for access to internal AWT classes
Java 17+ restricts access to internal sun.* APIs. The app needs JVM flags to open these modules.
1 parent 3a9ec75 commit 6b24fda

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
</classpath>
7575
<classpath dir="third_party/junit" includes="junit*.jar"/>
7676
<option value="-Djava.library.path=$APP_ROOT/Contents/Java/:$APP_ROOT/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries" />
77+
<option value="--add-opens=java.desktop/sun.awt=ALL-UNNAMED" />
78+
<option value="--add-opens=java.desktop/sun.lwawt=ALL-UNNAMED" />
79+
<option value="--add-opens=java.desktop/sun.lwawt.macosx=ALL-UNNAMED" />
80+
<option value="--add-opens=java.desktop/java.awt=ALL-UNNAMED" />
81+
<option value="--enable-native-access=ALL-UNNAMED" />
7782
</bundleapp>
7883
</target>
7984
</project>

0 commit comments

Comments
 (0)