Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't launch app 1:st time after download (Catalina) #61

Open
davidekholm opened this issue Oct 26, 2019 · 4 comments
Open

Won't launch app 1:st time after download (Catalina) #61

davidekholm opened this issue Oct 26, 2019 · 4 comments

Comments

@davidekholm
Copy link

I've updated our software (jAlbum) to use this fork as it supports Java 12 and 13. However, when downloading and opening the app the 1:st time it won't launch. No error messages. All subsequent open attempts works perfectly, it's only the 1:st time.

Note: jAlbum is still not notarized, so one hast to right-click the app and select "Open" to run it. It is when confirming the open in the "this app is downloaded from the Internet" dialog that follows that nothing happens. This problem doesn't exist with the original version of "JavaAppLauncher", but that one has issues with running Java 12 and 13.

@patrickangle
Copy link

Do you by any chance parse command line arguments provided to your application in your public static void main(String... args) method? We had the same issue until we realized that upon first run, we were receiving a command line argument roughly in the form of -p{some-number}, and were not handling it gracefully. Improving our command line argument handling to not abort upon failure resolved this issue for us.

@sreilly
Copy link
Contributor

sreilly commented Feb 4, 2020

In addition to Patrick's suggestion, would it be possible to show any output sent to the console logs when it fails to launch?

@rschmunk
Copy link
Contributor

rschmunk commented Feb 4, 2020

The original post was made last October. I just downloaded jAlbum and did not encounter the issue, so it looks like the app is now notarized.

I also encountered the same problem with an app of mine, and likewise resolved it by notarizing.

@davidekholm
Copy link
Author

Yes. Now all works. jAlbum is being notarized now as part of our build process. (Using Java 14's "jpackage" tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants