jsp问题 找不到符号

来源:百度知道 编辑:UC知道 时间:2024/07/01 04:04:02
Compiling 1 source file to D:\jsp\mapviewer\WebApplication1\build\web\WEB-INF\classes
D:\jsp\mapviewer\WebApplication1\src\java\student\Conn.java:29: 找不到符号
符号: 方法 getMessege()
位置: 类 java.lang.ClassNotFoundException
System.err.println(e.getMessege());
D:\jsp\mapviewer\WebApplication1\src\java\student\Conn.java:41: 找不到符号
符号: 方法 getMessege()
位置: 类 java.sql.SQLException
System.err.println(ex.getMessege());
2 错误
D:\jsp\mapviewer\WebApplication1\nbproject\build-impl.xml:295: The following error occurred while executing this line:
D:\jsp\mapviewer\WebApplication1\nbproject\build-impl.xml:149: Compile failed; see the compiler error output for details.
生成失败(总时间:2 秒)
package student;
import java.sql.*;

/**
*
* @author Administrator
*/
public cl

getmessege()是异常处理里边的啊,要写在catch中你看看是不是写在那里了

找不到access数据库的驱动程序,你配置好了access数据库了吗

使用ex.printStackTrace()输入异常信息就可以了

代码搞上来看看