Forums Register Login

JRE 1.3 hangs but 1.5 no

+Pie Number of slices to send: Send
I have an app that I am running in JRE 1.3 and 1.5. It started out as just a simple UI with cammandline arguements and had no problems. When I made a GUI Version of it it hangs in JRE 1.3, but not JRE 1.5.

When I look at the task manager in Windows it's getting 0 CPU usage.
Normally it gets 98 or 99 CPU usage. I can't figure out what the difference is.

any suggestions
+Pie Number of slices to send: Send
You might want to give a few details about what your app does...
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
You might try debugging it by putting in println()s to see where it is hanging.
Do you get any error messages on the Command Prompt console? Be sure to run it using java.exe not javaw.exe.
+Pie Number of slices to send: Send
I did put in dubugging statements. I usually don't ask someone for help until I've done all that I know to do. (Which I know other people who don't).

I did not however put a debug statement at the last line of the thread. And when I did that it worked. Turns out it was doing everything but automatically Exiting the System. So I just put System.exit(0); Where it should have naturely died on it's own.
Do Re Mi Fa So La Tiny Ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 797 times.
Similar Threads
Java webstart is not lauch second time with orbd services in java 1.6.0_10
Tomcat requests hangs for a while
EJB calls on Websphere 5.1 hangs IE with jre 1.6
EJB calls on Websphere 5.1 hangs IE
nio maxing CPU usage
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:12:31.