Erro Find Main Class - Advanced Installer Community
Janerson
Posts: 2
Joined: Thu Dec 11, 2014 1:10 pm

Erro Find Main Class

Hello

I created an installer for my java application, when I click on the .exe file generated by Advanced Installer, an error occurs, Can not Find Main Class. and show me the path of the main class, and the application process is running in the background, where only finalize the process by task manager, but if I click on the .jar file the application runs normally.

MANIFEST file in the main class is set up correctly.

In the Advanced Installer the main class is also correct.

how can I solve this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Erro Find Main Class

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Can you please take a look on our "can't find main class - JavaFX Application" thread and see if this helped? If this is of no help, can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Janerson
Posts: 2
Joined: Thu Dec 11, 2014 1:10 pm

Re: Erro Find Main Class

good night
I had seen this post but did not work for me
I am using java 8.

I created another JavaFX application to test with Advanced Installer
and worked properly.

So I copied the src folder of the application that is not working with Advanced Installer and pasted the test application, the .jar begotten again and replace the test application, then the same error occurred, saying it can not find the Main Class

the strange thing is that before my installer working perfectly.

Code: Select all

Manifest-Version: 1.0
Implementation-Title: SisgeFX
Implementation-Version: 1.0
Permissions: sandbox
Codebase: *
JavaFX-Version: 8.0

Created-By: JavaFX Packager
Implementation-Vendor: DOM
Main-Class: com.group.sisgefx.app.StartWizard
Annex follows the file .aip
Attachments
SisgeFX.aip
Project aip
(115.84 KiB) Downloaded 457 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Erro Find Main Class

Hello,

Your sent .aip (setup project file) seems to be configured fine. In order to investigate this further, can you please send us a download link to your MSI setup, built with the above .aip, to support at advancedinstaller dot com so we can test and investigate it? If you don't have a web server where to upload your MSI setup, then you can send us an email to support at advancedinstaller dot com and we'll forward you a FTP location where to upload the MSI.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Erro Find Main Class

Hello,

Our development team confirmed that the related behavior was caused by an Advanced Installer issue regarding our support for loading JavaFX apps (in Java 8). A fix was already added and will be available in the next version (11.8) of Advanced Installer. Thank you for bringing this to our attention. We'll notify you as soon as the next version including the fix will be out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Erro Find Main Class

Hello,

This was fixed in version 11.8 of Advanced Installer released on January 28th, 2015.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
globox
Posts: 1
Joined: Tue Aug 11, 2015 10:02 am

Re: Erro Find Main Class

Hello,

Is there a workaround for this issue for those who cannot upgrade to the version that contains the bugfix?

The background of the issue is:
- we have a jar containing several applications, one of them being a JavaFX application
- the jar that contains the JavaFX application is built with Java 8
- when trying to setup a Java Product for the respective application, building it successful and running it, we get the error: "Could not find the main class /com/our/application/Main"

I can mention that we have included in the Java Product's Settings tab, under the classpath the jfxrt.jar contained in the Java 8 distribution.

Many thanks in advance for any potential workaround.

Regards,
Cata
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Erro Find Main Class

Hello Cata and welcome to our forums,

Can you please download and install our latest version of Advanced Installer (12.3.1) from our "Download" page? By default it will run in trial mode. Then, please rebuild your project with our latest version of AI and let us know if this helped. If so, just send us an e-mail to support at advancedinstaller dot com with your Advanced Installer License Key and we will renew for free your maintenance plan so it covers the latest Advanced Installer version.

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

Return to “Common Problems”