When execute javac task in ant under openjdk(I also find this problem in Oracle JDK 1.6, 2014-3-21), you may encounter "package com.sun.xml.internal.bind.v2 does not exist" error, which is because this package only exists in Oracle (Sun) JDK, but not in openjdk. To resolve this problem, add compiler arguments "-XDignore.symbol.file=true" to javac task:
<javac destdir="${src.class.dir}" encoding="UTF-8" debug="true" classpathref="lib.path" failonerror="true"> <src path="${src.dir}"/> <compilerarg line="-XDignore.symbol.file=true" /> </javac>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。