1. Right Click on the project folder and choose export.
2. Choose "Ant BuildFiles" and click Next.
3. UNCLICK "Create target to compile project using Eclipse compiler" after making sure the proper project is selected above.
This ensures that the ANT build file is not dependent on eclipse.
4. Click finish and open the XML file and make sure it has xml code in it. You might get an eclipse auto-generated warning, that can be
ignored. The imporant part is to make sure this runs before making changes, so find the file in the terminal and run "ant clean", and then "ant", and then "ant Driver (1)". Your code SHOULD execute.
5. Eclipse sets the default action for ant to build, which is why earlier we ran "ant" instead of "ant build", which would have done the same thing. Because the project requires "ant compile" instead of "ant build" we have to change the target names. So in the build.xml file, find: "default="build"" and change build to "compile". This will make an error because the default target for running JUST "ant" is compile, but a compile target does not exist.
6. Find the line beginning with 'target depends=' and ends with 'name="build"'. change build to "compile". The error should go away. So now, when you call "ant compile" or "ant" it'll do what "ant build" or "ant" would have done previously, which is just go to the build-project and build-subprojects actions.
7. Finally, the project requires an "ant run" call, so find the "Driver (1)" or something similar, and change it to "run".
That's all the steps I needed. Now, I am not perfectly sure if the default build action is what you want in a compile command, but it'll fill everthing into a bin and make it runnable, so I think that is satisfactory. I hope the time I took to write this out will help you.
I created this video with the YouTube Video Editor ( / editor )