use try {  } and catch { } to catch the exception.

解决方案 »

  1.   

    you must use try{}&catch(){}to include your paragraph in,the exception information just tell you to do this,for examples,when you make some "rmi" programs,you must use "catch Remote exception"to catch the exceptio where you call the rmi interface!
      

  2.   

    java.sql.*里面的类文件,使用它里面的方法,一般都会抛出SQLException异常错误,你必须对其进行捕获,才能运行