how to install javassist

P

printdude1968

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?
 
J

jcsnippets.atspace.com

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?

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
 
O

Oliver Wong

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?

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
 
P

printdude1968

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.
 
J

James Westby

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?

Try
ant -projecthelp
to get a list of the targets that are available. Usually they will be
compile, test, install or similar.


James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top