Java Application Launch Fail

Hello,


I am trying to launch a .jar file on my macbook (macOS Monterey 12.7.6) with JavaLauncher. I have always been able to launch this application, but after updating Java with Version 8 Update 441 I get an error. The error says,


"Java Application launch failed. Check console for possible error messages related to "/Users/Diana_A/Desktop/obs_20250120/obs_20250120.jar".


I can't find any errors. Based on the advice of other threads, I tried opening the file directly from the terminal using "java -jar/Users/Diana_A/Desktop/obs_20250120/obs_20250120.jar". I then get the following error:


Unrecognized option: -jar/Users/Diana_A/Desktop/obs_20250120/obs_20250120.jar

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.


I tried this as well and got "permission denied":

Diana_A@Dianas-MacBook-Pro-4 ~ % /Users/Diana_A/Desktop/obs_20250120/obs_20250120.jar

zsh: permission denied: /Users/Diana_A/Desktop/obs_20250120/obs_20250120.jar


The file is not restricted to any users. When checking for the java version:


Diana_A@Dianas-MacBook-Pro-4 ~ % java -version

openjdk version "17.0.4.1" 2022-08-12

OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)

OpenJDK 64-Bit Server VM Temurin-17.0.4.1+1 (build 17.0.4.1+1, mixed mode, sharing)


I'm not very knowledgable on Java, but this .jar application has worked for other computers by just downloading Java and opening the file. It used to work for mine as well, but I am not receiving these errors and not sure how to troubleshoot. . Any advice would help!

Posted on Jan 31, 2025 10:38 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 31, 2025 5:25 PM

The Terminal command failed because of a missing space:


java -jar /Users/Diana_A/Desktop/obs_20250120/obs_20250120.jar


-jar is a switch that tells java to execute a .jar file (as opposed to other things it might do). The part after the space is the path in your file system to where the specific .jar file is located.


You might still get a repeat of the first error - let us know what happens.


Are you actually trying to run OBS (Open Broadcast Software)? I ask because of the naming convention of the .jar file. OBS has a native Mac application - https://obsproject.com/download - and you can get older versions if your macOS is older than macOS 11.

Similar questions

2 replies
Question marked as Top-ranking reply

Jan 31, 2025 5:25 PM in response to Diacalvar

The Terminal command failed because of a missing space:


java -jar /Users/Diana_A/Desktop/obs_20250120/obs_20250120.jar


-jar is a switch that tells java to execute a .jar file (as opposed to other things it might do). The part after the space is the path in your file system to where the specific .jar file is located.


You might still get a repeat of the first error - let us know what happens.


Are you actually trying to run OBS (Open Broadcast Software)? I ask because of the naming convention of the .jar file. OBS has a native Mac application - https://obsproject.com/download - and you can get older versions if your macOS is older than macOS 11.

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.

Java Application Launch Fail

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