JAVA -- ant编译时出现Compile failed; see the compiler error output for details异常

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq814965130/article/details/79256984

出错的原因:

1.模块中有可能命名时出现"_"(下划线)等特殊字符

解决方案:

1.模块重新命名或者是重新建立模块将其下方的各个部分进行复制/粘贴

阅读更多

Compile failed; see the compiler error output for details.

05-27

哪位侠客帮我看看,真的找不出办法了!,在JDK下编译也出这错,JDK版本已一样!rn2009-05-27 22:56:25,250 ERROR [org.apache.jasper.compiler.Compiler] Javac exception rnCompile failed; see the compiler error output for details.rn at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)rn at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)rn at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rnrn2009-05-27 22:56:25,250 ERROR [org.apache.jasper.compiler.Compiler] Env: Compile: javaFileName=/E:/jboss-3.2.5/server/default/work/jboss.web/localhost/HSWeb//org/apache/jsp/contract/register\manage_005fview_jsp.javarn classpath=/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/classes/;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/axis-ant.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/axis.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/commons-discovery-0.2.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/commons-fileupload-1.0.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/commons-logging-1.0.4.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/IdGeneratorService.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/jaxrpc.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/jxl.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/log4j-1.2.8.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/log4j.properties;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/Moc_Common.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/mr.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/msbase.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/mssqlserver.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/msutil.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/ot-common.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/saaj.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/servlet.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/tools.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/wsdl4j-1.5.1.jar;E:\jboss-3.2.5\server\default\work\jboss.web\localhost\HSWeb;/E:/jboss-3.2.5/server/default/lib/snmp-support.jar;/E:/jboss-3.2.5/lib/dom4j.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53041commons-logging.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/jaxrpc.jar;/E:/jboss-3.2.5/server/default/lib/scheduler-plugin-example.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53037commons-beanutils.jar;/E:/jboss-3.2.5/server/default/lib/jboss-transaction.jar;/E:/jboss-3.2.5/server/default/lib/jboss-management.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53045jasper-runtime.jar;/E:/jboss-3.2.5/server/default/tmp/deploy/tmp53049servlet-api.jar;/E:/jboss-3.2.5/server/default/deploy/HSWeb.war/WEB-INF/lib/axis-ant.jar;/E:/jboss-3.2.5/server/default/lib/autonumber-plugin.jar rn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\ot-common.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\saaj.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\servlet.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\tools.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\wsdl4j-1.5.1.jarrn cp=E:\jboss-3.2.5\server\default\work\jboss.web\localhost\HSWebrn cp=E:\jboss-3.2.5\server\default\lib\snmp-support.jarrn cp=E:\jboss-3.2.5\lib\dom4j.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53041commons-logging.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\jaxrpc.jarrn cp=E:\jboss-3.2.5\server\default\lib\scheduler-plugin-example.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53037commons-beanutils.jarrn cp=E:\jboss-3.2.5\server\default\lib\jboss-transaction.jarrn cp=E:\jboss-3.2.5\server\default\lib\jboss-management.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53045jasper-runtime.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53049servlet-api.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\axis-ant.jarrn cp=E:\jboss-3.2.5\server\default\lib\autonumber-plugin.jarrn cp=E:\jboss-3.2.5\server\default\lib\jcert.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\classesrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53038commons-collections.jarrn cp=E:\jboss-3.2.5\server\default\lib\properties-plugin.jarrn cp=E:\jboss-3.2.5\server\default\lib\jpl-pattern.jarrn cp=E:\jboss-3.2.5\server\default\deploy\http-invoker.sar\invoker.warrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\saaj.jarrn cp=E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\lib\ot-common.jarrn cp=E:\jboss-3.2.5\server\default\lib\jsse.jarrn cp=E:\jboss-3.2.5\server\default\tmp\deploy\tmp53063jms-ra.rarrn cp=E:\j2sdk1.4.2\jre\lib\ext\dnsns.jarrnrn2009-05-27 22:56:25,250 ERROR [org.apache.jasper.compiler.Compiler] Error compiling file: /E:/jboss-3.2.5/server/default/work/jboss.web/localhost/HSWeb//org/apache/jsp/contract/register\manage_005fview_jsp.java [javac] Compiling 1 source filernrnE:\jboss-3.2.5\server\default\work\jboss.web\localhost\HSWeb\org\apache\jsp\contract\register\manage_005fview_jsp.java:32: cannot access hs.oajk.SAPInf_DBrnbad class file: E:\jboss-3.2.5\server\default\deploy\HSWeb.war\WEB-INF\classes\hs\oajk\SAPInf_DB.classrnclass file has wrong version 49.0, should be 48.0rnPlease remove or make sure it appears in the correct subdirectory of the classpath.rnimport hs.oajk.SAPInf_DB;rn

换一批

没有更多推荐了,返回首页