Benches macOS

9

Cannot launch JAR file in Mac OS X 10.14.…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I'm running an iMacPro running Mac OS X ver. 10.14.3 (Mojave). When I attempt to start a JAR file, all I get is an error message that I can't. All my software appears to be up-to-date.

Please advise.

Sam

[Personal Information Edited by Host]

9 replies

Sign in or join Beachball Help to reply.

  1. 0

    WordWeaver777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Orbital, in order to run a jar file in Mojave, you need to have some implementation of Java installed. Apple deprecated Java 6 years ago. As a result, it is now necessary to install Oracle's java implementation. You can download the latest version here:

    https://www.oracle.com/technetwork/java/javase/downloads/index.html

    After you have run the installer package, you can verify that it is the active Java installation by typing the following in the Terminal and hitting your return key:

    java -version

    Please let me know if this resolves your issue. Thanks!

  2. 0

    OrbitalMechanic

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I installed Java SE 12 before posting my question, and it did not work.

    Any suggestions?

  3. 0

    leroydouglas

    Imported from the Apple Support Forums via the Wayback Machine 🔗

  4. 0

    WordWeaver777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Can you please clarify your comment? Are you saying that you were unable to install Java, or that even though you successfully installed it, you still couldn't get the jar file to run? Also, is it possible that the jar file requires legacy Java, such as Java 6? As you may know, even with the latest and the greatest from Oracle installed, some older Java-dependent apps will not work, because they require Java 6, which you can download here, if needed:

    https://support.apple.com/kb/dl1572?locale=en_US

  5. 0

    OrbitalMechanic

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Again, my Java SDK is up to date. I made sure it was up to date before I posted my question to the community. I also installed javaforosx and still I cannot start the JAR file.

    Any suggestions?

  6. 0

    WordWeaver777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    My email is in my profile if you want to send me a copy to play with. Maybe I can figure it out on my end. It's up to you.

    BTW, exactly how are you trying to run the jar file? By double-clicking it? Contextual menu/open command? From the Terminal?

  7. 0

    WordWeaver777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Sorry, my friend. I played around with it a bit, but I could not get it to run either, no matter how I tried. There are certain components -- a class file, it seems -- it is looking for, which it is unable to find.

  8. 0

    Barney-15E

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Is the java executable in your Java home folder set to open the jar files.

    Along with dumping Java, Apple disconnected their helper apps that would launch a jar on double-click.

    You may need to run it from the command line. You'll need to reference the java app in the JDK home and use the -jar file.jar option.

  9. 0

    WordWeaver777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    You may very well be right there, Barney. I figured it might be a matter of pointing to the JDK home directory, but I was just too lazy to try it out myself. :)