Modify

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 skyper, 3 years ago

Owner: changed from team to anonymous
Status: newneedinfo
Summary: Error satrting itError starting it

How do you download respectively install JOSM? Which version of java do you use?
Might be related to #22193. Does josm-latest work?

comment:2 by taylor.smock, 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 anonymous, 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 anonymous, 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 taylor.smock, 3 years ago

Resolution: othersoftware
Status: needinfoclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.