Change derived mode from fundamental-mode to java-mode.