Sorry to leave out the details.
What it does is it opens a text file and and two excel files. It then sorts out unneeded items from the text file based on the contents of the two excel files. It uses the POI API to read the Excel files, and write the output in an excel file. it deals with perhaps 100s of 1000s of
String comaparisons as each run involves files with houndreds of row of data.
I originally designed to run from commandline arguments that user would give indicating where all the files are located. When I run it that way it runs fine. Then I set it up to recieve a "-g" parameter to use a GUI to get that same information.
I have a main class that recieves the parameters. When it recieves the file names as parameters they are passed to the object that does all of the work and everything works just fine.
When the main class recieves a "-g" parameter it runs the following code and this is the only thing that is different
I run the file using the following command line
java -cp .\lib\JMOD.jar;.\lib\POI.jar; jmod.JMOD -g
Thanks