Skip to main content
gamedev.net
🔒 Locked

Got a question about Ant

Started by metallicsoul92 Nov 7, 2009 at 3:22 PM 7 replies 750+ views
Original Post
metallicsoul92
metallicsoul92
how do you build it? i installed it, i wanna build games through Java. (Jagex is my Idol lol) so yea, how do you build it?



rip-off
rip-off
You generally don't build ant, just install it. How did you install it?
metallicsoul92
metallicsoul92
put it in Program files, went to the enviornment variables, put : ANT_HOME in , then C:\programfiles\Ant, and then the JAVA_HOME in and put in C:\java\jdk(blah blah blah)


im using eclipse, and whenever i try to compile and use ant, it says: cannot find ant file to run



rip-off
rip-off
Do you have a build.xml file for your project? I believe this is what ant searches for by default.
metallicsoul92
metallicsoul92
no i do not lol. thats probably why i cant. how do i get that?



rip-off
rip-off
Are you sure you even need ant then? Eclipse does a perfectly serviceable job of building your projects by itself. Custom build tools like ant and maven can be overkill for lone developers, particularly inexperienced ones. Not to say that they don't have advantages, just that they also bring complexity.

You can find sample build.xml files online, which you can adapt to your own project's needs.
rip-off
rip-off
You don't need ant, no. Why do you want to use it? Technologies like ant have trade offs. You need to think about what are the pros and cons of using ant to build your project.

If you are a beginner, then I'd probably advise you to stick to eclipse's internal builder for the time being.
metallicsoul92
metallicsoul92
ok, so to take off ant, just delete the enviornment variable?



Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.