Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use emacs as my JAVA IDE?

Tags:

I would like to use emacs instead of Netbeans which gets too bloated on my computer. I already have JDEE, I did not dig it, but it looks like it lacks:

  • Classes testing : run a class which has a main method, but which is not the main class of the project
  • Maven integration : this is a minor wish as Netbeans doesn't support maven that well too.
like image 918
amirouche Avatar asked Jun 30 '10 07:06

amirouche


People also ask

Can I use Emacs for Java?

Emacs is a one-fits-all solution to programming and of course it also fits Java.

What is Emacs Java?

The Java Development Environment for Emacs (JDEE) is an integrated development environment for Emacs. It interfaces Emacs to command-line Java development tools, for instance Oracle's JDK. At some point, development of JDEE was by all appearances slow.


1 Answers

I recommend you to use malabar-mode instead of JDEE - malabar is the only modern mode for Java development currently available for Emacs. It offers:

  • Tight integration with Maven

  • A Groovy console for rapid prototyping and exploratory programming

  • JUnit integration, both for running tests standalone and through Maven

  • Import help; import one class or all needed classes in the buffer (with prompting if the class name is ambiguous)

  • Extend class / implement interface / override method helpers

  • Simplistic refactorings

like image 185
Bozhidar Batsov Avatar answered Oct 06 '22 01:10

Bozhidar Batsov