tomcat部署问题
我在linux 下j2sdk-1_4_2_15-linux-i586.bin+ jakarta-tomcat-5.0.28.tar.gz
安装成功后启动:
Using CATALINA_BASE: /home/tom/tomcat
Using CATALINA_HOME: /home/tom/tomcat
Using CATALINA_TMPDIR: /home/tom/tomcat/temp
Using JAVA_HOME: /home/tom/j2sdk
将公司编写的一个应用程序加上如下:
007-10-15 17:50:19 StandardContext[/jsp-examples]ContextListener: contextInitialized()
2007-10-15 17:50:19 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2007-10-15 17:50:20 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2007-10-15 17:50:20 StandardContext[/servlets-examples]SessionListener: contextInitialized()
2007-10-15 17:50:20 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2007-10-15 17:50:22 StandardContext[/lw]Exception starting filter SetCharacterEncodingFilter
java.lang.UnsupportedClassVersionError: filter/SetCharacterEncodingFilter (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:211)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:30
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:369
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:105
at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:48
at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:47
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2007-10-15 17:50:46 StandardContext[/manager]HTMLManager: init: Associated with Deployer 'localhost'
2007-10-15 17:50:46 StandardContext[/manager]HTMLManager: init: Global resources are available
2007-10-15 17:50:46 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2007-10-15 17:50:59 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2007-10-15 17:51:05 StandardContext[/manager]HTMLManager: start: Starting web application at '/lw'
2007-10-15 17:51:05 StandardContext[/lw]Exception starting filter SetCharacterEncodingFilter
java.lang.UnsupportedClassVersionError: filter/SetCharacterEncodingFilter (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:211)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:30
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:369
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)
at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:19
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
2007-10-15 17:51:05 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2007-10-15 17:51:09 StandardContext[/manager]HTMLManager: stop: Stopping web application at '/MyFirst'
2007-10-15 17:51:09 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2007-10-15 17:51:12 StandardContext[/manager]HTMLManager: start: Starting web application at '/MyFirst'
2007-10-15 17:51:12 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2007-10-15 17:51:14 StandardContext[/manager]HTMLManager: restart: Reloading web application at '/MyFirst'
2007-10-15 17:51:14 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
急切需要帮助,感谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
你需要的类是不是都已经导入了。
还有保证类的路径正确
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:154: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:249: _jspx_meth_html_errors_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_0(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:253: _jspx_meth_html_errors_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_1(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:257: _jspx_meth_html_errors_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_2(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:261: _jspx_meth_html_errors_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_3(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:265: _jspx_meth_html_errors_4(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_4(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:269: _jspx_meth_html_errors_5(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_5(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:274: cannot find symbol
symbol : method doAfterBody()
location: class org.apache.struts.taglib.html.FormTag
int evalDoAfterBody = _jspx_th_html_form_0.doAfterBody();
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:275: cannot find symbol
symbol : variable EVAL_BODY_AGAIN
location: interface javax.servlet.jsp.tagext.BodyTag
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
^
Note: /home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java uses unchecked or unsafe operations.
Generated servlet error:
Note: Recompile with -Xlint:unchecked for details.
9 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:45)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
谢谢startxing 我装了jdk1.5
已经可以编译了
但是编译报错,如下:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:154: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:249: _jspx_meth_html_errors_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_0(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:253: _jspx_meth_html_errors_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_1(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:257: _jspx_meth_html_errors_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_2(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:261: _jspx_meth_html_errors_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_3(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:265: _jspx_meth_html_errors_4(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_4(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:269: _jspx_meth_html_errors_5(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.login2_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_5(_jspx_th_html_form_0, _jspx_page_context))
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:274: cannot find symbol
symbol : method doAfterBody()
location: class org.apache.struts.taglib.html.FormTag
int evalDoAfterBody = _jspx_th_html_form_0.doAfterBody();
^
Generated servlet error:
/home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java:275: cannot find symbol
symbol : variable EVAL_BODY_AGAIN
location: interface javax.servlet.jsp.tagext.BodyTag
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
^
Note: /home/tom/jakarta-tomcat-5.0.28/work/Catalina/localhost/lw/org/apache/jsp/login2_jsp.java uses unchecked or unsafe operations.
Generated servlet error:
Note: Recompile with -Xlint:unchecked for details.
9 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:45)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
因为我刚开始接触linux下tomcat的安装,以前也没有用过,所以希望不要见笑
这些错误我实在看不明白,多谢了
Unsupported major.minor version 49.0
应该是公司环境是JDK1.5,你安装的是JDK1.4.2
把JDK改了应该就没有问题了
JDK版本问题,
你在linux安装的是JDK1.4.2
你确认一下你们公司开发的那个是不是在1.4.2情况下开发的。
或者那个系统所用到的jar包是不是支持1.4.2
使用相同版本是什么意思?
能不能具体点
谢谢!
编译时尽量使用相同的jdk版本