I can't open .jar files!!

mafalda

Registered
I really need some help out here! I'm a mac user for about 4/5 months and I'm struggling to open a .jar file! I keep getting the same message: "check console for errors". When I do, this is what I find:

09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] Exception in thread "main"
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] java.lang.UnsupportedClassVersionError: Bad version number in .class file
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.lang.ClassLoader.defineClass1(Native Method)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.security.AccessController.doPrivileged(Native Method)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
09/02/19 22:41:27 [0x0-0x5d05d].com.apple.JarLauncher[330] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)

But I have no idea what it means! Please help me!
 
I really need some help out here! I'm a mac user for about 4/5 months and I'm struggling to open a .jar file! ...
I'm thinking maybe not. A .jar file is a Java archive. This is the format used for programs written in the Java programming language. If you are familiar with the BASIC language, then .jar is to Java as .bas is to BASIC. If you insist on opening the file, then try Xcode or a dedicated Java IDE.
 
.jar files (or Java archives) should be double-clickable to run, if that's how they're set up. MisterMe: I think you're thinking of .java files, which are source code Java files, like .BAS files, which are source code BASIC files.

From the output you posted, it looks as though Mac OS X may be trying to run the .jar file with the wrong version of Java. What version of Java does the .jar file require? You can get this information from whomever or wherever the .jar file came from... does it require Java 5? Java 6? What dependencies does it have?
 
.jar files (or Java archives) should be double-clickable to run, if that's how they're set up. MisterMe: I think you're thinking of .java files, ...
Although Java and BASIC have obvious differences, they also have similarities. Like programs written in most implementations of BASIC, programs written in Java are not standalone executable files. Double-clicking on a .jar file launches a runtime engine known as a virtual machine that, in turn, interprets Java code.
 
Although Java and BASIC have obvious differences, they also have similarities. Like programs written in most implementations of BASIC, programs written in Java are not standalone executable files. Double-clicking on a .jar file launches a runtime engine known as a virtual machine that, in turn, interprets Java code.
Programs written in java would (typically) have the .java extension and, like you said, are not standalone executables.

.jar files (Java archives) should be double-clickable on Mac OS X, since the Java Run-time Environment is included with Mac OS X. They're not programs written in Java -- they're archives of java programs and java bytecode that are double-click-to-run (which, like you said, launches a JRE and executes the code).

They should act no different from any other double-clickable program (other than the inherent differences between the JRE and native applications).
 
If you want to look at the files inside .jar files, it is possible with either Zipeg or Betterzip. Since Firefox themes come in .jar files and I have a habit of tweaking them before installing them, I make frequent use of Betterzip to get at the files inside them.
 
i have this same problem. im not familiar with any type of code but i can follow directions. ive tried opening the file in jar launcher and by opening it in the terminal using java -jar filename.jar. Xcode is apparently for mac developers only so i cannot use that
 
ElDiabloConCaca (Post #6 and I (Post #5) both told you what to do. If double-clicking the .jar archive does not run the program, then there is nothing more than anyone here can do to immediately help you. Someone will need to modify the Java code to allow it to execute on the MacOS X virtual machine.
 
Back
Top