ant错误: 程序包javax.crypto不存在

 

 在javac的bootclasspath中加入${java.home}/lib/jce.jar,多个用分号分开

<javac encoding="utf-8" srcdir="${basedir}/src" destdir="${classes}" includeantruntime="false" bootclasspath="${java.home}/lib/rt.jar;${java.home}/lib/jce.jar" excludes="/com/urt/sample/*.*">
        <classpath refid="classpath"/>
        <compilerarg value="-g:lines,vars,source" />
</javac>

 

你可能感兴趣的:(ant,javax.crypto)