I'm new to Linux. I heared EMacs is a greate editor even more than that.How do I use it begin my java programming? Can use javac in it? And how to debug? Please give me some information or useful links on it. Thanks in advance.
Yes, emacs is an world-encompassing program masquerading as a text editor. I've used it effectively for major projects.
However. If you have at least a 1Ghz processor and 512MB of RAM, you're probably better off using Eclipse. Eclipse is GUI and does things in ways that Windows users (and their compatriots on Macs, et al) are comfortable and generally familiar with.
Emacs is good for less powerful systems and/or if you really love LISP and WordStar. Emacs was originally designed for a rather unusual keyboard and there are enough control/escape sequences to tie your fingers in knots.
For Java developing, install the JDE package. It's not as powerful as the Eclipse Java support stuff, but it can be a big productivity aid. And - if you really love LISP - you can extend it more easily (IMHO) than you can extend Eclipse's Java support (less to learn).
You can debug within Emacs by plugging in a debugger such as DDD + the Java debugger. Basically, you can spend your whole life inside Emacs (As Richard Stallman is reputed to do). Did I mention that it helps if you really like LISP?
Anyway, I hope this helps.
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.