当前位置: 技术问答>java相关
运行时的出错提示!
来源: 互联网 发布时间:2015-04-06
本文导语: 我在运行JSP时,出现如下提示出错· 是什么意思?谁能帮帮我吗? Error: 500 Location: /lyb/view_message.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. ...
我在运行JSP时,出现如下提示出错·
是什么意思?谁能帮帮我吗?
Error: 500
Location: /lyb/view_message.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
F:tomcatworklocalhost_8080_0002flyb_0002fview_0005fmessage_0002ejspview_0005fmessage_jsp_0.java:68: Ambiguous class: java.beans.Statement and java.sql.Statement
Statement stm=con.createStatement();
^
1 error, 1 warning
是什么意思?谁能帮帮我吗?
Error: 500
Location: /lyb/view_message.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
F:tomcatworklocalhost_8080_0002flyb_0002fview_0005fmessage_0002ejspview_0005fmessage_jsp_0.java:68: Ambiguous class: java.beans.Statement and java.sql.Statement
Statement stm=con.createStatement();
^
1 error, 1 warning
|
java.sql.Statement stm=con.createStatement();
|
Statement类暧昧不明,是java.beans.Statement还是
java.sql.Statement呢?Statement stm=con.createStatement();
改成java.sql.Statement stm=con.createStatement();就行了!
java.sql.Statement呢?Statement stm=con.createStatement();
改成java.sql.Statement stm=con.createStatement();就行了!