We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

btech88
Posts: 5
Joined: Tue Mar 11, 2014 10:29 pm

After Install the Java App can not find Bundled JRE

We are using Advanced Installer 10.9.1 to install a 64-bit Java app. We are bundling the JRE from the directory /Program Files/Java/jdk1.7.0_03/jre and assigning it to the 64 bit. (note: Originally we were going to make one installer for both the 64 bit and 32 bit versions but decided to have two different installers). We configured this in the Java Products Bundled JRE section. And also selected all the compression options.

The installers installs without any errors. However whenever we start it we get the error: Cannot find Java 1.7 or higher. However, we can clearly see it was installed along with the app in the app's directory under: C:/Program Files/MyCompany/MyApp/JRE and C:/Program Files/MyCompany/MyApp/JRE64. So the bundled JRE was installed. Also How does the java app know where the bundled JRE resides?

Please help,
Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: After Install the Java App can not find Bundled JRE

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?
Also How does the java app know where the bundled JRE resides?
Please take a look on "Advanced Installer Native Java Launcher" which exposes how our Java launcher look for bundled JRE.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
btech88
Posts: 5
Joined: Tue Mar 11, 2014 10:29 pm

Re: After Install the Java App can not find Bundled JRE

Thanks for your quick response. I've attached the Advanced Installer config file. So for a bit more details:

1. We are creating a Java Netbeans Platform Application. To distribute our app, we select the package option that creates .exe file from the netbeans and some corresponding jar files. So if the user has a JRE, all they need are these files and to simply click on the .exe file.

2. We want to bundle the JRE along with our app in the Advanced Installer. I did setup all of this in the java products settings. However, after reading your response I looked at the java Products and creating a "native launcher". Is this required for the bundled JRE?

Also after looking at the config options in these launcher I don't see where you have it call the .exe file that was generated from Netbeans. I saw where you can indicate the jar and main class - but how do you point it the the .exe file created by Netbeans?

Thanks
Attachments
tv.aip
(487.51 KiB) Downloaded 352 times
btech88
Posts: 5
Joined: Tue Mar 11, 2014 10:29 pm

Re: After Install the Java App can not find Bundled JRE

Forgot to attach the verbose log. Here it is

Thanks
Attachments
example.zip
(105.22 KiB) Downloaded 269 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: After Install the Java App can not find Bundled JRE

Hello,
1. We are creating a Java Netbeans Platform Application. To distribute our app, we select the package option that creates .exe file from the netbeans and some corresponding jar files. So if the user has a JRE, all they need are these files and to simply click on the .exe file.
If you already have an EXE launcher for your java product application, then in this case there is no need to add the bundled JRE in your installation project. In this case you can simply add the JRE as a prerequisite to your project. Also, you can take a look on our "Behaviour of 32-bit jre on prepacked in mixed mode installer" thread which contains a sample project attached which should be useful for you.
2. We want to bundle the JRE along with our app in the Advanced Installer. I did setup all of this in the java products settings. However, after reading your response I looked at the java Products and creating a "native launcher". Is this required for the bundled JRE?
From what I see in your sent project you didn't added any java product in our "Java Products" page. Please keep in mind that the bundled JRE added in "Java Products" page is mainly intended to be used by our Java Launcher. Please take a look on our "Creating a Java Product Installation" tutorial.

If you have any questions let us know.

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

Return to “Building Installers”