Skip to content

Commit 18c5f8d

Browse files
committed
fix cmd line help; add java cmd line args
1 parent 29a7533 commit 18c5f8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

testing/linux/josm.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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"
203206
elif [ $use_graal_vm == true -a "$jdk" == "jdk17" ] ; then
204207
cmd="$(pwd)/$jdk_home/bin/java \
@@ -223,6 +226,9 @@ else
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"
227233
fi
228234

0 commit comments

Comments
 (0)