These instructions are useful for the ant-directed builds required by the course software. While eclipse knows many things about how to compile Java, compiler modules are generated using tools, and eclipse does not know natively how to run those tools nor how to deal with the software generated by such tools.
The bottom line is that everything is easy using ant, but a few steps are necessary to configure your workspace properly to run ant and its tasks in the proper way.
Always begin by installing your studio or lab software as directed. When you are referred to this document, follow the steps below.
Look for the java-cup-11a jar file in the Tools folder in the eclipse package explorer. If it is missing, then the jar file is not needed for this work, so you can move on to the next step. Otherwise, do the following:
Right- (control-) click on the build.xml file, and select Run as →
Although it is tempting to do so, do not select Ant Build, the first and most obvious choice, as a small change must be made before the build will work.Instead, choose Ant Build . . ., the one with the ellipses, which leads to a configuration panel.
This button is to the right of a similar-looking button. The button to the left will re-run an application, while the button to the right will re-run the ant build task.
Using this button can save you a lot of time! As you work on your project and need to run the code, just click on that button and the ant build should run again.
The build files are written to avoid unnecessary work, so it is always best and fastest to click the button and run the default ant task.