You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Launch .jar files MacOS Mojave

I cannot launch .jar files by double-clicking them - opening with Jar Launcher. If i run the.jar file using

$ java -jar filename.jar

from terminal, they work just fine. But if I try to open them with Jar Launcher it displays the message: 


"The Java JAR file "filename.jar" could not be launched.

Check the Console for possible error or messages"


The message in Console after this is, "LSExceptions shared instance invalidated for timeout."

java -version

on terminal displays:

java version "12.0.1" 2019-04-16
Java(TM) SE Runtime Environment (build 12.0.1+12)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)


Please let me know if I can do anything? Thanks in advance

MacBook Pro 13", macOS 10.14

Posted on Jun 26, 2019 6:20 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 4, 2019 6:52 AM

If you Get Info on the file, does it say the default application is Jar Launcher?

If so, it could be something with the Jar Launcher not being able to pass it off to that version.


You could create an Automator Quick Action that takes in files, then run a shell script:

java -jar "$@"

You could right-click on the jar and choose your Quick Action to run the jar.


3 replies
Question marked as Top-ranking reply

Jul 4, 2019 6:52 AM in response to harriskhawer

If you Get Info on the file, does it say the default application is Jar Launcher?

If so, it could be something with the Jar Launcher not being able to pass it off to that version.


You could create an Automator Quick Action that takes in files, then run a shell script:

java -jar "$@"

You could right-click on the jar and choose your Quick Action to run the jar.


Launch .jar files MacOS Mojave

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.