Creating the Macintosh Application in Eclipse
Once I had the File Watcher Java code up and running in the Eclipse IDE, I had to make it possible to deploy it to a Mac machine that I wanted to watch. Eclipse allows you to export your Java code as a standalone Macintosh application. I simply chose to export the application as a Macintosh application, and then let Eclipse do its thing (see Figure 5).
Figure 5 Making a MAX OS X application is easy using Eclipse.
Eclipse asked me for the location of the files and other dependencies, and then turned my code into the standalone application. I copied the application file over to the Mac XServer that I wanted to monitor and started it. It was that simple!