| Author |
Program crashes before reaching main
|
Jyoti Bodhwani
Greenhorn
Joined: Sep 02, 2009
Posts: 1
|
|
what can be the reasons for a program crashing before flow reaches to main ??
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
What is the exact error message ? Please post the error message, and the stack trace if there is one. One cause could be that the main class is not found.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32712
|
|
And welcome to JavaRanch
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
If the class who's main method you are trying to run has static initializers that throw exceptions these will cause the program to abort.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32712
|
|
|
There are several possibilities, but we can't help without knowing the error message.
|
 |
 |
|
|
subject: Program crashes before reaching main
|
|
|