这是一个创建于 3110 天前的主题,其中的信息可能已经有所发展或是发生改变。
用 ant build 的时候四五分钟之后,就报这个错,实在摸不到头脑哪里的毛病,求大大赐教。
compile.init:
jar.init:
jar:
[mkdir] Created dir: C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\target\artifacts
[mkdir] Created dir: C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\target\classes
[s:javac] Compiling 3 source files to C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\target\classes
[s:javac] ----------
[s:javac] 1. ERROR in C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\src\main\java\org\springframework\instrument\classloading\WeavingTransformer.java (at line 77)
[s:javac] String internalName = className.replace(".", "/");
[s:javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[s:javac] The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
[s:javac] ----------
[s:javac] 2. ERROR in C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\src\main\java\org\springframework\instrument\classloading\WeavingTransformer.java (at line 77)
[s:javac] String internalName = className.replace(".", "/");
[s:javac] ^^^^^^^
[s:javac] The method replace(char, char) in the type String is not applicable for the arguments (String, String)
[s:javac] ----------
[s:javac] 2 problems (2 errors)
[subant] Leaving directory: C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat
BUILD FAILED
C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\multi-bundle\artifact.xml:60: The following error occurred while executing this line:
C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\multi-bundle\common.xml:86: The following error occurred while executing this line:
C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\common\artifact.xml:43: The following error occurred while executing this line:
C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\common\common.xml:161: The following error occurred while executing this line:
C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\standard\common.xml:29: Compile failed; see the compiler error output for details.
Total time: 4 minutes 23 seconds
3 条回复 • 2016-05-26 10:13:34 +08:00
|
|
1
crytis 2016-05-25 17:56:03 +08:00 via iPhone
用 maven 吧
|
|
|
2
crayhuang 2016-05-25 18:11:19 +08:00
用 maven + 1
|
|
|
3
tidezyc 2016-05-26 10:13:34 +08:00
人家好好的 gradle 的项目,楼上推荐 maven 的是什么逻辑
|