Skip to content

Commit 200c2d3

Browse files
committed
open additional modules when invoking java
In particular, --add-opens java.desktop/javax.swing.text.html=ALL-UNNAMED is necessary to launch JOSM's internal help browser
1 parent 1740ca4 commit 200c2d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testing/linux/josm.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ if [ $use_graal_vm == false -a "$graal_js" == "" ] ; then
199199
-Xmx2g \
200200
-Djosm.home=`pwd`/josm-home \
201201
-Djava.util.logging.config.file=`pwd`/logging.properties \
202+
--add-opens java.prefs/java.util.prefs=ALL-UNNAMED \
203+
--add-opens java.desktop/javax.swing.text.html=ALL-UNNAMED \
202204
--add-exports=java.base/sun.security.action=ALL-UNNAMED \
203205
--add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED \
204206
--add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED \
@@ -209,6 +211,8 @@ elif [ $use_graal_vm == true -a "$jdk" == "jdk17" ] ; then
209211
-Xmx2g \
210212
-Djosm.home=`pwd`/josm-home \
211213
-Djava.util.logging.config.file=`pwd`/logging.properties \
214+
--add-opens java.prefs/java.util.prefs=ALL-UNNAMED \
215+
--add-opens java.desktop/javax.swing.text.html=ALL-UNNAMED \
212216
-jar `pwd`/$josm_jar"
213217
else
214218
if [ $graljs_major -lt 23 ] || ( [ $graaljs_major -eq 23 ] && [ $graaljs_minor -eq 0 ] ) ; then
@@ -226,6 +230,7 @@ else
226230
--module-path $graal_js_home/lib \
227231
--add-modules $modules \
228232
--add-opens java.prefs/java.util.prefs=ALL-UNNAMED \
233+
--add-opens java.desktop/javax.swing.text.html=ALL-UNNAMED \
229234
--add-exports=java.base/sun.security.action=ALL-UNNAMED \
230235
--add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED \
231236
--add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED \

0 commit comments

Comments
 (0)