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!