Modify

Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#24226 closed defect (invalid)

java version issue

Reported by: john.woollett@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

Hi, Have just moved to windows11, am trying to rum JOSM from command line, but get this error

C:\Users\johnw\Desktop>java -jar josm-tested.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openstreetmap/josm/gui/MainApplication has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Attachments (0)

Change History (1)

comment:1 by gaben, 5 weeks ago

Resolution: invalid
Status: newclosed

Recent JOSM versions require Java 11 or newer, so you have to upgrade your Java at least to 11.

Or you can use the JOSM installer from the front page which installs everything for you: download/windows/josm-setup.msi

Last edited 5 weeks ago by stoecker (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.