Changed target JVM to 1.6 from 1.5.  Also added code that should display an out of memory message if it occurs.