Updated preferences to use Java 7 properly.