Java Problem

Joined
Jul 28, 2009
Messages
2
Reaction score
0
Points
1
Hey guys,

I want to open a *.jar file.

While double-clicking (Jar-Launcher) I get "... could not be launchend."

While opening with Terminal: "java -jar filename.jar" I get the following message:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
gnaus-lamars-macbook-pro-15:username$


When I go to Java Preferences J2SE5 at the Top. Down is the version 1.4.2. In Software Updates there is nothing new to update.

Can anyone help me to get this file running?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
From what I understand, this means that the application was compiled with a version of Java newer than the version you are running it with. So, if it doesn't work with java 5, it's likely that it was compiled with java 6. What application are you trying to run?
 
OP
S
Joined
Jul 28, 2009
Messages
2
Reaction score
0
Points
1
Since I have a 32bit MacBookPro I cant install JAVA 6. I get an error message that I need a 64-bit machine for it. So have installed soylatte and now everything is working. THANKS for the hint vansmith.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top