Mac OS X Ant Building Java Projects
The Short Guide shows you How to Quick Start with Ant Building a Hello-World Java Project on Mac OS X.
Ant is a build tool, a small program designed to help software teams develop big programs by automating all the drudge-work tasks of compiling code, running tests, and packaging the results for redistribution.
Ant is written in Java and is designed to be cross-platform, easy to use, extensible, and scalable.
The Tutorial Include Links to Getting-Started with Ant and Oracle Java JDK 7 on Mac OS X.
Getting-Started with Apache Ant on Mac OS X
Ant Getting-Started Guide
Open Terminal Window
(Press “Enter” to Execute Commands)
Create a Simple Java Project Instance.
Nano is used because it’s Present by Default on System, so Instead, You can just Use Your Editor of Choice…
public class HelloWorldWithAnt
public static void main(String args)
System.out.println("Hello World. I Got Started with Ant!");
Now Suppose that You Want Ant to:
- Build the Class on Project
- Store the Results in a JAR Archive
Make the Ant build.xml File.
Building the .jar file.
How to Install Recommended Oracle JDK on Mac OS X
Install Oracle JDK for Mac
To Run the Ant Building Task.
Getting-Started with Hadoop/Map-Reduce on Mac OS X