ant.javac2 cannot be found???

Someone want to clue me in on where I get this? Yup, the ant build XML tells me I need it, so does the debugger when the build fails. But there's nowhere on this site that I can find it and I've wasted 3 hours looking and googling the lack of hits makes me wonder if I'm making this too hard and I'm sure I am.

Where can I get this file?

Thanks,

Rex

10 comments
Comment actions Permalink

Rex Winn wrote:

Someone want to clue me in on where I get this? Yup, the ant build
XML tells me I need it, so does the debugger when the build fails.
But there's nowhere on this site that I can find it and I've wasted 3


Its in the $IDEA_HOME/redist/javac2.jar file. Add that to your
classpath....

0
Comment actions Permalink

I feel like I inherited and extended everything from class IDIOT. I just searched and found it right as your email arrived telling me where to get it.

Would be nice if they would make that a bit more well known. Maybe a sentence or 2 in the documentation would be helpful...

Thanks a bunch!!!

0
Comment actions Permalink

Guess, I'm making this too hard. Finally built okay. Where's the jar?

0
Comment actions Permalink

Rex Winn wrote:

Guess, I'm making this too hard. Finally built okay. Where's the jar?


Wheres what jar? What are you building?

0
Comment actions Permalink

I'm finished writing the program, I got ant to build using the generated .XML file and I have all the right jar files in ant's path.

So I did the build allin ant and went looking for a .jar file with my project name and did not find one. Again, I'm very new to java so I must be missing something.

How do I turn my java source code into a program my users can run? I thought I did it with ant and maybe you do but if that's the case I'm not doing something right.

- Rex

0
Comment actions Permalink

Rex Winn wrote:

So I did the build allin ant and went looking for a .jar file
with my project name and did not find one. Again, I'm very new to
java so I must be missing something.


As far as I know, the Ant script generated by IDEA only compiles your
code, if you want to generate a jar file, you'll need to add a target
and relevant jar tasks to your build.xml yourself.

Also, to make an 'executable jar file', you'll need to specific the
Main-Class to include in the Manifest. Take a look at the Ant
documentation at http://ant.apache.org

0
Comment actions Permalink

Guess I'm an idiot I cannot figure it out and I've wasted about 10 hours on this. Instead of just little bits of information here and there when it's obvious I'm not getting it can you provide more information?

I've got a project named dw6000.ipr, I've got a build file named dw6000.xml. I now have ant installed and it is working it does the same thing that ant does in IDEA. It runs and says it was succesful but doesn't produce a single thing. I must be a total idiot but I'm a pissed off idiot because I cannot figure it out. I looked at the XML file and it doesn't have any instructions in their for the jar I tried putting them in, didn't get any errors but I didn't get any files either.

I could really use more information if you are willing to provide. Obviously I'm burning up a lot of time and getting nowhere and I'd love to finish this for my client and be done with it.

Pretty frustrated here.

- Rex

0
Comment actions Permalink

Okay, I think I finally got it figured out. That process is not simple at all. Would be nice for JetBrains to make that a bit easier.

Last question. Is there any 3rd party tool I CAN BUY to make that easier and that will parse my project and make sure the final .jar is assembled correctly?

Thanks for the help. While it was a struggle it did help. ;)

- Rex

0
Comment actions Permalink

Rex Winn wrote:

I've got a project named dw6000.ipr, I've got a build file named
dw6000.xml. I now have ant installed and it is working it does the
same thing that ant does in IDEA. It runs and says it was succesful
but doesn't produce a single thing. I must be a total idiot but I'm a


You'll find that the build script is merely compiling your classes to
the defined output directory.

You'll need to add something like:

]]>

Obviously I'm burning up a lot of time and getting nowhere and I'd
love to finish this for my client and be done with it.


There something about this sentence that scares me, but I'm not entirely
sure what...

0
Comment actions Permalink

There something about this sentence that scares me,
but I'm not entirely
sure what...


Nah, no fear here. It's a pretty simple application that requests an html stream, parses out the good stuff, dumps it in a form and that's it. All it does is check a status page on a local web server.

The but kicker is that I originally wrote all of it in C# but the client then wanted it to run on MAC and Linux. So I fired up IntelliJ and ported it to Java that all went great but the forms stuff of IntelliJ ain't super easy to figure out. Got it now and I think I'm off and running.

Thanks for the help though!

0

Please sign in to leave a comment.