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!

SADDAMNJ
Posts: 3
Joined: Wed Sep 09, 2015 3:15 pm

New to Installer for java app

Hi,

I am new to application packaging and I am trying to package a web application using the "Tomcat Web Application Setup Wizard". I have the "Tomcat Apache" with the .war file inside the webapps folder. When the wizard asked me to locate the "Tomcat Bundle Folder" I located the Path but the "Advanced Installer" gives me an error msg "Product Name cannot be installed on the system with JDK version lower than 7 ". Even though i added the jre file as prerequisite I am unable to understand the issue. Could anyone please help me?

My requirement is to install the following components,
1. Install JRE if not installed in the machine
2. Deploy the tomcat apache server and the war file into the same
3. Install MySQL

Any kind of documentation to package as per the requirement above would be great.

I am kind of stuck with this issue for quite sometime and I have to show a demo setup to my boss ASAP. Please help!!!! :oops:

Thanks in advance
Saddam
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: New to Installer for java app

Hello Saddam and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
I am new to application packaging and I am trying to package a web application using the "Tomcat Web Application Setup Wizard". I have the "Tomcat Apache" with the .war file inside the webapps folder. When the wizard asked me to locate the "Tomcat Bundle Folder" I located the Path but the "Advanced Installer" gives me an error msg "Product Name cannot be installed on the system with JDK version lower than 7 ". Even though i added the jre file as prerequisite I am unable to understand the issue. Could anyone please help me?
This happens because our wizard automatically adds the JDK 7 as a launch condition to your project. Can you please go to "Launch Conditions page -> Software tab" and uncheck the JDK 7 launch condition and rebuild your project.
Any kind of documentation to package as per the requirement above would be great.
Here are some useful links which should help you get a good starting point:
1. How to add JRE or .NET Framework as a prerequisite?
2. How to install mysql server 5.0 and Connector silently
3. Unable to bundle a software using Tomcat Web Applciation
4. Can't get custom Tomcat 7 to install as a Windows Service

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SADDAMNJ
Posts: 3
Joined: Wed Sep 09, 2015 3:15 pm

Re: New to Installer for java app

Hi Daniel

Thanks for your Reply, I do the same as per your guidelines like I started with Tomcat Application By giving product Name and and then i browse my set up files with tomcat extract folder with our application war file deployed in the same and then i build this package after that I move to Requirements module in that preinstall folder i added jre7 and dotnet4.0 setup files and then in feature based folder i added Mysql and Adobe reader set up files and then package to it one. after that i taken the set up file and run in the system means Java files is installing successfully and then Error Message is displaying which i am enclosing with this please check and guide me proper so that i can use as early as possible.

Thanks,
Saddam
Attachments
Error dialog box while running the set up
Error dialog box while running the set up
Error.png (453.9 KiB) Viewed 2767 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: New to Installer for java app

Hello Saddam,

This may happen if you are using an incorrect install condition for your Java prerequisite. Please keep in mind that searches from "Prerequisite Install Conditions" tab are executed twice:
1. once before the prerequisite should be installed; if the searches fail, then the prerequisite will be launched for install, otherwise it won't
2. after the prerequisite it is installed the searches are executed again, if the searches still fail this means the prerequisite didn't installed correctly

So, your prerequisite searches should always fail when the prerequisite is not installed and succeed when it is installed. Please take a look on our "Why do I receive the 4154 warning?" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SADDAMNJ
Posts: 3
Joined: Wed Sep 09, 2015 3:15 pm

Re: New to Installer for java app

Hi Daniel

Thanks for your reply, I had done as per your guidelines everything is good but MySQL is not installing can you tell any idea. please it is urgent for me to complete this task before this month end.

If you had any sample application as like my requirement which i mentioned in first please send me.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: New to Installer for java app

Hello Saddam,

You can find a sample attached in the "MySql server installation fails with MySQLInstallerConsole as custom action" thread.

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”