Unable to find main class - 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!

renfrow
Posts: 6
Joined: Tue Apr 16, 2013 12:10 am

Unable to find main class

I am building an installer for a Java program. This program depends on 4 other jars, that I include in the installer, and have them installed in C:\Java\Lib. After installing attempting to run the .exe results in an error message that it can't find the main class, AND, the .exe staying running in the background, so that I have to manually kill it from the Task Manager. I can copy the jar file to C:\Java\Bin, open a cmd window in that directory, and run the program: 'java -jar myJar.jar'. Sooooo, this indicates that the .exe is not able to find the jars. Help me Obi Wan Kenobi, you're my only hope! :)

Tom.

PS, I tried to set the .msi to upload it, but, it's 3.4MB in size.
renfrow
Posts: 6
Joined: Tue Apr 16, 2013 12:10 am

Re: Unable to find main class

You can ignore this, if you like: I fixed it by having the installer put the application jar in C:\Java\Bin.

Tom.

Return to “Common Problems”