JDK Only Application - Advanced Installer Community

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!

km
Posts: 6
Joined: Thu Jan 18, 2007 10:20 am

JDK Only Application

I have a computer that have multiple JDKs and JREs installed, and the default is JRE. When I am starting a Java Native program using JDK only, and 1.4+ configuration, the program starts the application with the default JRE.

How do I enfore the Java Native program to use JDK instead of JRE?

Many Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can force the Java Native program to use JDK by setting the source of the virtual machine: in the "Java Products" page, "Virtual Machine" tab you set "Source:" to only JDK

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
km
Posts: 6
Joined: Thu Jan 18, 2007 10:20 am

I have already set the Java Products to "server preferred" and "JDK Only", however the application is still started with JRE.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I cannot reproduce this behavior on my test machine. Advanced Installer makes the .jar application run properly using JDK if "Only JDK" is set.

Please make sure your settings are correct! Additionally try to reproduce this behavior on another computer.

We have a tutorial on installing a Java Product:
http://www.advancedinstaller.com/user-g ... -java.html
You can read more about Java products here:
http://www.advancedinstaller.com/user-guide/java.html

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
km
Posts: 6
Joined: Thu Jan 18, 2007 10:20 am

The problem still persists. Shall I know which system registry the program is looking and search for the jdk?
km
Posts: 6
Joined: Thu Jan 18, 2007 10:20 am

btw, shall I force the program to use the JRE or JDK that is bundled with the installer?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please send us the .aip file (if it doesn't contain confidential information) or a small test case reproducing this behavior to support at advancedinstaller dot com so we can take a look!

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”