日期:2014-05-18  浏览次数:20893 次

跪求各位高手,关于jxl导入excel到mysql问题
我在做毕业设计时遇到了这个问题,我想在管理员模块中添加excel导入功能,在参考了许多高手的文章后,还是遇到了问题。。。错误代码如下:
Error:   500
Location:   /myaaa/teacher/chengjitongji.jsp
Internal   Servlet   Error:

org.apache.jasper.JasperException:   Unable   to   compile   Note:   sun.tools.javac.Main   has   been   deprecated.
/usr/local/jakarta-tomcat-3.3.1a/work/DEFAULT/ROOT/myaaa/teacher/chengjitongji_2.java:141:   '} '   expected.
                                    out.write( "\r\n\r\n\r\n ");
                                                                                        ^
/usr/local/jakarta-tomcat-3.3.1a/work/DEFAULT/ROOT/myaaa/teacher/chengjitongji_2.java:145:   Statement   expected.
                                      public   class   TestExcel   {
                                      ^
/usr/local/jakarta-tomcat-3.3.1a/work/DEFAULT/ROOT/myaaa/teacher/chengjitongji_2.java:150:   Invalid   method   declaration;   return   type   required.
                                                  main(String[]   args)   {
                                                  ^
/usr/local/jakarta-tomcat-3.3.1a/work/DEFAULT/ROOT/myaaa/teacher/chengjitongji_2.java:233:   Type   expected.
                    }   catch   (Exception   ex)   {
                        ^
4   errors,   1   warning

at   org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at   org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at   org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at   org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at   org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at   org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at   org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at   org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at   java.lang.Thread.run(Thread.java:595)



------解决方案--------------------
main(String[] args) { 的定义多看一下嘛,楼主还是找点java语法的基础看一下吧
public static void main(String []args)
------解决方案--------------------
改过来了,运行了有问题再看看错误啊,
我的异常网推荐解决方案: 发展方向解决办法