0

我正在使用 ant 脚本来构建应用程序。此应用程序在 9.2 bea.lib=C:/bea92/weblogic92/server/lib- ant 代码下运行 - 运行良好,但是当我更改为 12c lib 文件夹bea.lib=C:/bea12c/wlserver_12.1/server/lib时,它给了我这个错误:

[javac] bad class file: C:\bea12c\wlserver_12.1\server\lib\..\..\..\modules\features\..\javax.servlet_2.0.0.0_3-0.jar(javax/servlet/http/HttpServletRequest.class)
[javac] class file has wrong version 50.0, should be 49.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import javax.servlet.http.HttpServletRequest;
[javac]    
4

1 回答 1

0

似乎您正在使用已编译Java 6JAVAC低于 1.6 的库。我建议将您的编译器升级到1.6.

于 2013-05-08T22:22:22.737 回答