View Single Post
  #1 (permalink)  
Old 01-21-2008, 07:47 PM
bugger bugger is offline
Senior Member
 
Join Date: Nov 2007
Posts: 111
bugger is on a distinguished road
Main method throwing specific Exception
The following signature of main method works fine.

Code:
public static void main(String[] args) throws Exception {
When I try to use some specific Exception, main method throws exception.

Code:
public static void main(String[] args) throws IOException {
Exception:
Code:
Exception in thread "main" java.lang.Error: Unresolved compilation problem: IOException cannot be resolved to a type
Reply With Quote
Sponsored Links