Java is more like assembly language programming at this point in software history.
You shouldn't be editing Java with any editor, let alone emacs.
This is because if you are using 3 frameworks, and 30 classes with DI and reflection, just to post a json to a http end point, you should be using an IDE to handle that kind of madness.