This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes main problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

main problem

subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
Hi All,

I am running one application program, what it has do is:

1) Open input file read it and insert the records in the database
2) So i am using BufferedReader, BufferedWritter and Jdbc
3) I am closing all the resources in the finally block (all checks are done for null...)

Problem is:
The main never exit by itself

Means if i put the



line at the end of the main all is doing well otherwise program doesn't terminate.

Has anybody faced this problem?
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Third cross-posted copy of same question. Getting annoying.

Everyone, please ignore this cross-posted copy.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
It is sorta covered in the JavaRanch Style Guide.
subject: main problem
Similar Threads
main thread not exiting
regarding the main and System.exit
How to close Hibernate C3P0 Connections properly?
Running program written in Java 6 in JRE 1.4.2 Environment
Problem while using the Eclipse IDE