added eval-after-load to java-mode