Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13522 closed defect (invalid)

java error at start

Reported by: marco69 Owned by: team
Priority: normal Milestone:
Component: Core Version: tested
Keywords: Cc:


Hi all.

Giving the command
~$ java -jar ./josm-tested.jar

I get this error:

Exception in thread "main" java.lang.ClassFormatError: JOSM (unrecognized class file version)

at java.lang.VMClassLoader.defineClass(
at java.lang.ClassLoader.defineClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(

~$ java -version
java version "1.5.0"
gij (GNU libgcj) version 5.3.0

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by skyper

Resolution: invalid
Status: newclosed

You are using a very old java version. In order to run JOSM you need java 8 (1.8) or higher.

comment:2 Changed 5 years ago by marco69

Thanks, but I must be missing something.

I've installed this file:
downloaded from this page:

I still have

~$ java -version
java version "1.5.0"
gij (GNU libgcj) version 5.3.0

Where is a more recent jdk to be found?

comment:3 Changed 5 years ago by Don-vip

you must uninstall your prehistoric version, see

comment:4 Changed 5 years ago by marco69

Thank you! I removed a package called gcc-java an now everything works fine:

~$ java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.