rstoneIDBS
Posts: 2
Joined: Mon Mar 25, 2019 11:28 am

Java & OpenJDK

We are in the process of transitioning our Java application to use OpenJDK, currently our application is packaged using Advanced Installer 10.9.1 and we bundle the JRE into the application. Our application is launched via a url protocol handler.

We've noticed that very occasionally the application now fails to start, it almost looks like the .exe that Advanced Installer creates is either not running or is not managing to start the bundled JRE correctly, we are assuming this because the 1st thing our application tries to do is to create a log file (in the users APPDATA roaming location) and when it fails to start this log file isn't being created. We have the 'Startup failure check' option set, but we don't see any errors at all.

Is there any way we can turn on further debug logging for the generated .exe in order to diagnose this problem ?

Rob
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java & OpenJDK

Hello and welcome to our forums,

To try investigating this just configure the "Output Stream" and "Error Stream" fields from "Java Virtual Machine" tab of your setup project and see if there is any error logged at your java product runtime.

Otherwise you can try to debug your java app code and try to see if the main method of your app is even reached.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rstoneIDBS
Posts: 2
Joined: Mon Mar 25, 2019 11:28 am

Re: Java & OpenJDK

Thanks Daniel, I will try configuring the output & error streams.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java & OpenJDK

You are welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”