I've downloaded the code from Thinking in Java 4 and want to do the
build on it. I was able to (finally) get ant installed (me thinking I
had to build the binaries...duh) so the next thing is to install
something called javassist. I've downloaded it and put it on my J
drive under
J:\javassist
So now I figure I can just do an "ant build" from the directory where I
installed javassist. No such luck I get a message
J:\javassist>ant build
Buildfile: build.xml
BUILD FAILED
Target `build' does not exist in this project.
Total time: 0 seconds
J:\javassist>
So I searched cyberspace and the docs that came with javassist to no
avail... can anyone help me?
jcsnippets.atspace.com - 11 Apr 2006 14:29 GMT
> I've downloaded the code from Thinking in Java 4 and want to do the
> build on it. I was able to (finally) get ant installed (me thinking I
[quoted text clipped - 17 lines]
> So I searched cyberspace and the docs that came with javassist to no
> avail... can anyone help me?
Long time since I've used Ant, so this is from memory...
1. Does your build.xml file exist? Fairly obvious, of course...
2. Can Ant reach your build.xml file? Can it find the file it's looking
for?
3. Does the "build" target exist in the build file? Is it the default
target? Does the default target exist?
If these did not solve your question, have a look at the Ant docs next:
http://ant.apache.org/faq.html for all your frequently asked questions,
and http://ant.apache.org/problems.html for common problems.
Good luck & best regards,
JC

Signature
http://jcsnippets.atspace.com
a collection of source code, tips and tricks
Oliver Wong - 11 Apr 2006 20:55 GMT
> I've downloaded the code from Thinking in Java 4 and want to do the
> build on it. I was able to (finally) get ant installed (me thinking I
[quoted text clipped - 17 lines]
> So I searched cyberspace and the docs that came with javassist to no
> avail... can anyone help me?
Why don't you just download the binaries for Javassist, so you don't
have to deal with Ant? http://www.csg.is.titech.ac.jp/~chiba/javassist/
- Oliver
printdude1968@gmail.com - 11 Apr 2006 21:18 GMT
Hi,
Thanks for your advice. In a backwards sort of way, that is what I had
done. I mis-read the instructions and was attempting to build the
binaries. As it turns out, all I had to do was copy the .jar into the
lib/exe directory for the proper JRE and it worked fine.
James Westby - 11 Apr 2006 23:30 GMT
> I've downloaded the code from Thinking in Java 4 and want to do the
> build on it. I was able to (finally) get ant installed (me thinking I
[quoted text clipped - 17 lines]
> So I searched cyberspace and the docs that came with javassist to no
> avail... can anyone help me?
Try
>ant -projecthelp
to get a list of the targets that are available. Usually they will be
compile, test, install or similar.
James