Think in java CODE 无法编译?

joyrush 2002-12-20 11:49:21
下载了Think in java 的code 但是不知道怎么用
给了几个BUILD.xml
能不能一次吧所有的java都编译通过?
----------------------------------
<?xml version="1.0"?>


<project name="Thinking in Java (bangbean)" default="bangbean.run" basedir=".">

<description>
build.xml for bangbean of "Thinking in Java, 3rd Edition"
by Bruce Eckel
Available at http://www.MindView.net
See copyright notice in CopyRight.txt
</description>

<!-- build all dependencies -->
<target name="bangbean.prepare">
<ant
antfile="${basedir}/../com/build.xml"
target="com.build"
dir="${basedir}/../com"
output="${basedir}/../com/log.txt"
/>
</target>

<!-- build all classes in this directory -->
<target name="bangbean.build" depends="bangbean.prepare" description="Compiles all the examples in bangbean">
<javac
srcdir="${basedir}"
classpath="${basedir}/.."
source="1.4"
/>
</target>

<!-- run all classes in this directory -->
<target name="bangbean.run" depends="bangbean.build" description="Compiles and runs all examples in bangbean">
</target>

<!-- delete all class files -->
<target name="clean" description="Removes all old class files">
<delete>
<fileset dir="${basedir}" includes="**/*.class"/>
<fileset dir="${basedir}" includes="**.*Output.txt"/>
</delete>
<echo message="clean successful"/>
</target>

</project>
...全文
51 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
joyrush 2003-01-13
  • 打赏
  • 举报
回复
谢谢你亲爱的狐狸
redfox008 2002-12-25
  • 打赏
  • 举报
回复
1、下载安装ant http://jakarta.apache.org/,就是解压就好了
ANT_HOME=ant安装目录
ClassPath=%ANT_HOME%\lib\ant.jar;
Path=%ANT_HOME%\bin;
2、在dos模式下进入到bulider.xml所在目录,直接运行ant即可
joyrush 2002-12-25
  • 打赏
  • 举报
回复
??可以说的傻瓜一点么!??

一步一步来!
copyright 2002-12-20
  • 打赏
  • 举报
回复
请仔细看source目录的build.xml文件
采用的是ant来编译

62,629

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧