Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的开发环境是在JDK1.6中运行的,我需要编译一些类来兼容运行JDK1.5的客户端。我将如何使用 'javac' ant 目标执行此操作?
命令行:javac -target 1.5 源文件
蚂蚁:< javac srcdir="${src} destdir="${build}" target="1.5" />
< javac srcdir="${src} destdir="${build}" target="1.5" />
<javac source="1.5"... />