There's plenty of closely related questions on SO, just to name some of them:
- Java and Clojure with Leiningen
- What is the best way to do Java development in Emacs?
- Best java tools for emacs
The difference of my questions is that I want to know how to make working with Java as easy as with Clojure right from Emacs within mixed Clojure/Java Leiningen project.
What I mean is possibility to (in order of priority):
- compile Java code right from Emacs (note: it is possible to compile it from the shell with
lein javac
) - use code completion for Java (tools like JDEE provide this feature, but it is separate tool that doesn't concern Leiningen project setup)
- debug Java code