How do I open a .Jar File when it says check console for error messages

What am I supposed to do when I need to open a .jar file on MacBook Air when it keeps saying that I have to check the console for any error messages? Could you please tell me how I can avoid this to happen and how I can open my .jar file which I had many attempts to try and open it.

MacBook Air

Posted on Jun 8, 2020 6:48 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 8, 2020 8:27 PM

Oracle has Java Development Kits (JDKs) that are the runtime environment's that make running a Java app possible.

.Jar files are not standalone applications. They require a Java runtime environment to interpret the embedded code to display the app.


In Catalina, Apple completely dropped Java.

There is no java launcher app that does the work necessary to find the java runtime and tell it to run and open the .jar file.

You have to run the specific java runtime and tell it to open the .jar file.

The java app that runs the .jar file is usually in its own "home" folder that is likely in /Library/Java/JavaVirtualMachines/<java version folder>/bin

So, you have to tell that version of the java app to open the .jar file from the command line using the full path to the java app with the -jar option and the path to the .jar file.


The most recent Oracle Open JDKs are here: https://jdk.java.net

I don't know if your .jar file will work with one of those releases. You would have to ask whoever created it what version of Java you need.

Similar questions

8 replies
Question marked as Top-ranking reply

Jun 8, 2020 8:27 PM in response to anusha88

Oracle has Java Development Kits (JDKs) that are the runtime environment's that make running a Java app possible.

.Jar files are not standalone applications. They require a Java runtime environment to interpret the embedded code to display the app.


In Catalina, Apple completely dropped Java.

There is no java launcher app that does the work necessary to find the java runtime and tell it to run and open the .jar file.

You have to run the specific java runtime and tell it to open the .jar file.

The java app that runs the .jar file is usually in its own "home" folder that is likely in /Library/Java/JavaVirtualMachines/<java version folder>/bin

So, you have to tell that version of the java app to open the .jar file from the command line using the full path to the java app with the -jar option and the path to the .jar file.


The most recent Oracle Open JDKs are here: https://jdk.java.net

I don't know if your .jar file will work with one of those releases. You would have to ask whoever created it what version of Java you need.

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.

How do I open a .Jar File when it says check console for error messages

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