When the dialog opens, select the Java arrow to display its options. This should reveal a picture similar to the one below.
Make sure the compiler compliance level is set 5.0, then you're good to go.