Runs under NetBeans, fails with AI MSI File - 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!

cesdewar
Posts: 11
Joined: Mon Oct 20, 2008 10:27 pm

Runs under NetBeans, fails with AI MSI File

I have a large application that I just added a new class to. The app compiles and runs fine under NetBeans, but installing the app from AI-generated MSI file results in the program failing without any error message as it is launched. After many hours of manual debugging, I found it failing when it first accessed a variable in the new class with a completely innocuous statement:

GClass.instanceArray = null;

The first time it accessed the class GClass the app just disappeared off the screen. I even put this in as the first executed statement in the file, just to be sure nothing else was executed in the interim and it still fails.

This statement executes fine in NetBeans, but the app blows away on this statement when compiled as an MSI file. I'm at a complete loss to determine how to proceed. I am thinking that when this class is accessed there is some obscure problem in the class (the libraries used by this class include standard libraries that Google provides) that only shows up when assembled by AI (?). There's just nothing particularly unusual in the code... I tried several different versions of Java, I tried moving all the code in the class into another class, but the symptoms are always the same. I suspect there is some problem in getting the libraries to load properly, or configured?? Any thoughts would be appreciated!
cesdewar
Posts: 11
Joined: Mon Oct 20, 2008 10:27 pm

Re: Runs under NetBeans, fails with AI MSI File

Ok, I'll reply to myself on this one :lol:

It was of course a silly problem, but one that sure sent me for a loop. About a year go I had changed the paths for the libraries and AI had not been updated to look in the right place, so ITS list of libraries did not include some key libraries. It never made any difference until a week or so ago when I included a bunch of new libraries.

I would have thoughtthat problem would generate some nice error message, like "Missing Library: xxxx" - but I guess there are too many programmers these days that don't bother to check for things like that, or put up a useful error message, and instead let the operating environment crash 'em out :cry:
Anyway, ignore this post, I'm happy now :D

Return to “Common Problems”