I have run the code under a 1.6 JDK/JRE just fine (on Linux).
Can you please be much more specific with your error report, so we can find out what really happened on your system? A description of "hated it" is a little bit too general :-)
Thanks,
Jonathan