Eclipse fails to compile