Modify

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:

Description

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(libgcj.so.16)
at java.lang.ClassLoader.defineClass(libgcj.so.16)
at java.security.SecureClassLoader.defineClass(libgcj.so.16)
at java.net.URLClassLoader.findClass(libgcj.so.16)
at java.lang.ClassLoader.loadClass(libgcj.so.16)
at java.lang.ClassLoader.loadClass(libgcj.so.16)
at gnu.java.lang.MainThread.run(libgcj.so.16)

~$ 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:
http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz
downloaded from this page:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

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 http://stackoverflow.com/a/14211717/2257172

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
Action
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.