I have a strange problem with Eclipse Galileo. I set Java 1.6 as my JRE. On this line of code
List templates = new ArrayList ();
I see
put the entry "JRE System Library..." at the top in project, properties, java build path, order and export