Michael Linder
Aug 10, 2008
mlinder@tamu.edu

TO LAUNCH:
1... If you have a java JRE installed, you should be able to just click on the .jar file and the application should launch.
2... (Also requires JRE) You can launch by command line with the command 'java -jar <path to jar>.jar'.  This will print debugging info to the command line. Do not close the terminal window or it will close the cuckoo application.

TO USE:
1... Clicking the 'Start' button will start the clock and change the status from 'clock needs winding' to 'tick tick tick tock'.
2... This starts a timer which checks the system time once per minute and plays the required audio files on the hour and half hour.
3... Clicking the 'Stop' button turns off this timer and returns the status to 'clock needs winding'.  You can start and stop the cuckoo clock as many times as you want.

TO QUIT:
1... Simply close the window by clicking on the x in the upper right corner.  You can stop the clock first if you wish but it's not necessary.
2... If you're running it from a terminal, closing the terminal should close the application also.

PROBLEMS:
If you encounter problems, run the application via the terminal as described above.  This should print debugging info to the screen as well as any stack traces if an exception occurs.  Email me the screen output and I'll try and fix it.

OTHER NOTES:
1... I am in no way a java expert.  I think the project hierarchy is messed up (files are duplicated) and I'm not sure what to do about it.  Also, I started writing JUnit tests but they're not complete and may not even work.
2... I had a problem with the Swing libraries not being added to the classpath at build time and as a result the application wouldn't even launch.  I fixed this problem by adding code to the bottom of the Ant build script which manually adds the Swing classes to the project.  The code was taken from a website which I would give credit to if I remembered the URL.  Anyway, that code is someone else's.  The cuckoo clock image was found on the internet as well.
3... It took me FOREVER to figure out how to reference resources within the .jar file.  I believe it works properly for the audio files, but occasionally after building I'll end up with a .jar file that won't launch because the application doesn't reference the background image properly.  The code may need to be changed to reference that image in the same way the audio files are referenced. 

