Opened 3 years ago
Closed 3 years ago
#22235 closed defect (othersoftware)
Error starting it
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
I am using Arcj + XFCE and I get this error:
~ >>> josm
Unrecognized option: --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Attachments (0)
Change History (5)
comment:1 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Summary: | Error satrting it → Error starting it |
comment:2 by , 3 years ago
@anonymous: if you can, modify the josm start script (which josm
, probably /usr/bin/josm
) and add set -ex
after the first line. You can then paste the output here.
comment:3 by , 3 years ago
I did that and here is the output:
+ JOSM_ARGS= + '[' -f /etc/conf.d/josm ']' + . /etc/conf.d/josm ++ JOSM_ARGS=--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED + CLASSPATH=/usr/share/java/josm/josm.jar + java --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED -cp /usr/share/java/josm/josm.jar -Djosm.restart=true org.openstreetmap.josm.gui.MainApplication Unrecognized option: --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will ex
comment:4 by , 3 years ago
By the way I have installed it via the Manjaro's repositories, but installing it as flatpak makes it work.
comment:5 by , 3 years ago
Resolution: | → othersoftware |
---|---|
Status: | needinfo → closed |
See https://bugs.archlinux.org/task/72953. Arch should use our start script (see source:trunk/native/linux/tested/usr/bin/josm ) which correctly adds flags based off of the java version.
How do you download respectively install JOSM? Which version of java do you use?
Might be related to #22193. Does josm-latest work?