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!
FOLLOW US
Get the latest news in Application Packaging