Safari not allowed to open java jar files

Hey everyone, each time I attempt to open a .jar file, I get a message say "nameoffile.jar Cannot be opened because Safari is not allowed to open Java JAR files. How do I fix this? I have the latest versions of high sierra and Java. It says the same thing if I try to open it by using Google Chrome also. I am asking on the apple site because it only started doing this when I upgraded to high sierra. However, my other os was out of date so I'd like to keep this one if possible.


Thank you

MacBook Pro, iOS 10.3.3

Posted on Feb 11, 2018 5:33 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 11, 2018 6:37 PM

Browser's are restricted from opening jar files. That was the flaw that allowed exploits in Java a while back.

Install a Java Developer Kit (JDK) and open them with that.

Or, use the command line to open the jar referencing the JRE in the Internet Plug-In.

4 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari not allowed to open java jar files

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