File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ usage: josm.sh <options>
1919 If missing, 'latest' is used.
2020
2121 --jdk jdk17 | jdk21
22- The JDK to use. Either 'jdk11 ' or 'jdk17 '. If missing, 'jdk11 ' is used.
22+ The JDK to use. Either 'jdk17 ' or 'jdk21 '. If missing, 'jdk17 ' is used.
2323
2424 --use-graal-vm
2525 If present, JOSM is started with the GraalVM. The GraalVM version is chosend depending on
@@ -199,6 +199,9 @@ 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-exports=java.base/sun.security.action=ALL-UNNAMED \
203+ --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED \
204+ --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED \
202205 -jar ` pwd` /$josm_jar "
203206elif [ $use_graal_vm == true -a " $jdk " == " jdk17" ] ; then
204207 cmd=" $( pwd) /$jdk_home /bin/java \
223226 --module-path $graal_js_home /lib \
224227 --add-modules $modules \
225228 --add-opens java.prefs/java.util.prefs=ALL-UNNAMED \
229+ --add-exports=java.base/sun.security.action=ALL-UNNAMED \
230+ --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED \
231+ --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED \
226232 org.openstreetmap.josm.gui.MainApplication"
227233fi
228234
You can’t perform that action at this time.
0 commit comments