RobotProjectTemplates is a project mainly written in Java, it's free.
Project templates for NXT and SUNSpot based robots. Ant scripts etc.
This robot project templates.