aspose file tools
The moose likes Beginning Java and the fly likes Program crashes before reaching main Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Program crashes before reaching main" Watch "Program crashes before reaching main" New topic
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
    
  11

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
    
    4
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
    
    4
There are several possibilities, but we can't help without knowing the error message.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Program crashes before reaching main
 
Similar Threads
Processing Time
Simple Compiling Question
Why is main static
static string