Home > OS >  MacOS: Cannot open JAR File
MacOS: Cannot open JAR File

Time:12-22

I have been trying to install a pair trader on my Mac and have not been having success. Links/specs provided below.

When I try to install the JAR file, I first get the error that this app is from an unknown developer. When I go to system preferences, unlock, and click "open anyway", I get the following error:

Java Application Failed Check console error for possible messages related to "/Users/USER/Downloads/ptltrader-1.6.0-macosx.jar"

I've tried everything on the internet and just can't figure it out. Any help would be appreciated - TIA.

macOS Big Sur 11.6.8 java version "17.0.5" 2022-10-18 LTS - This is from running "java -version" in Terminal. Java Version 8 Update 351 (build 1.8.0_351-b10) - This is from the Java Control Panel. Link to what I'm trying to install: https://github.com/quantverse/ptltrader/releases

When I click "open anyway," I expect the JAR file to open and run. I have also tried to "Command Click" the file in finder, and when I choose "Open With," the only option is JavaLauncher.

CodePudding user response:

java -XstartOnFirstThread -jar ptltrader-1.6.0-macosx.jar 2>&1 | tee err-out.log

(since your error message seems to indicate a gui threading issue)

  • Related