Emacs has been accused as an entire operating system pretending to be a text editor, but there's a complete
IDE package available for it. I use it on one of my less powerful machines sometimes. Unlike the commercial IDEs, it doesn't require X Windows.
However, unless you're resource-constrained, a better choice is to download and install a full-fledged Java IDE such as Eclipse. Make sure you get the version that has gtk and the Java development stuff in it. The Motif version works under Linux, but it can be a bit ugly.
If you don't want/need a full IDE, Visual SlickEdit has a Linux version, or you can just use something like the KDE or gnome editors (available from the desktop menu) and compile off an xterm command-line window.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.