One other option is to add a file to the directories in your source tree to disable fragging of Java services. This is not a documented capability, but should work for most versions around.
Just add an empty file named .nojfrag to the directories where you have your services defined. It’ll still compile them, but will skip fragmentation of the Java source from that directory and all sub-directories.