Ant找不到rt.jar
來源:http://hhw3.blog.163.com/blog/static/26909662013010787453/
 When javac is compiling code it doesn't link against rt.jar by default. Instead it uses special symbol file lib/ct.sym with class stubs.
 Surprisingly this file contains many but not all of internal sun classes.? And the answer is: javac -XDignore.symbol.file. That's what javac uses for compiling rt.jar."
?
 所以加上這句 <compilerarg value="-XDignore.symbol.file"/> :
 
 <javac srcdir="src" destdir="${build.target.dir}/bin" encoding="${sourceEncoding}" source="1.6" target="1.6" debug="true" debuglevel="${debuglevel}" >???
 ????????? <classpath refid="aaa.classpath" />?
 ??????????<compilerarg value="-XDignore.symbol.file"/>???
 </javac>
總結
以上是生活随笔為你收集整理的Ant找不到rt.jar的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: 头条系有哪些app(都有哪些成就)
 - 下一篇: 城镇职工养老保险每月领多少?