Can not find main class when starting 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!

rcaschultz
Posts: 3
Joined: Fri Oct 05, 2007 2:24 pm

Can not find main class when starting application

I packaged a Java application on 5.2.2 that will start correctly on machines with a JDK installed, but on a machine where I install a bundled JRE I get the error that the main class can not be found for the GUI main class. If I install the bundled JRE with the application, on a machine with the JDK already installed, the application starts successfully.

I am confused why the application starts fine on one machine and not on other machines. The installation seems to install identically on all machines.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

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

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rcaschultz
Posts: 3
Joined: Fri Oct 05, 2007 2:24 pm

Can not find main class

Created a new AIP file and now it works correctly. Very frustrating to spend hours cleaning up an AIP file and then finding it now no longer works as expected. Any insights would be appreciated. The corrections I spent the most time in was organizing the features and then testing how the features displayed during the installation process,
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Created a new AIP file and now it works correctly. The corrections I spent the most time in was organizing the features and then testing how the features displayed during the installation process,
We cannot reproduce the problem you are encountering using the AIP file you have sent us. Maybe the problem was with a jar file that cannot be found because it was included in a feature that by default was not selected for installation.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
rcaschultz
Posts: 3
Joined: Fri Oct 05, 2007 2:24 pm

Cannot find main class

The required class files were included in the jar files installed by default. It seems that if I try and edit an AIP file significantly (in particular - the organization tab with advertising or disallowing features) I end up with the cannot find main class error. If I go back and recreate the AIP straight through - without having to go back and perform additional edits - everything works fine. I just have to be very careful that I do everything correctly on the first try.

Return to “Common Problems”