没有catch ClassNotFoundException

解决方案 »

  1.   

    没有,报的是unhandled exception  type classnotfoundException
      

  2.   

    public void run(){
          try{
             ……………… Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");错错
    String url="jdbc:odbc:sms"; while(true){  
        ………………
                 sleep(200l);
    }
    }catch(InterruptedException e){
         public void run(){
          try{
             ……………… Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");错错
    String url="jdbc:odbc:sms"; while(true){  
        ………………
                 sleep(200l);
    }
    }catch(Exception e){
         System.out.println(e);                        
    }}
      

  3.   

    没有,报的是unhandled exception  type classnotfoundException就是因为你没有catch它