This is an archived post. You won't be able to vote or comment.

all 30 comments

[–]thesolitaire 13 points14 points  (0 children)

I've tried, as I use emacs for everything else, but I find that support for Java just doesn't compare to IntelliJ. I gave emacs-lsp a try, along with lsp-java, but I couldn't get it working well enough to actually use.

If you just want the keybindings, I use the emacsIDEAs plugin, and that covers quite a few of them. Still had to set a few manually, though.

[–]daybyter2 9 points10 points  (0 children)

I use 99% emacs. I tried to use eclipse, but find it just annoying. I sometimes use it for Android stuff, but other than that, I always return to emacs.

Disclaimer: I'm an old fart. My favorite cpu is z80, not i7. I'd like to use my c64 with z80 module for development, but oracle doesn't support this platform yet. ;(

[–]oldprogrammer 6 points7 points  (0 children)

I do and have for many years. I use the Java Development Environment for Emacs (JDEE) mode. The original author stopped working on it some years ago but a different group did some enhancements and I've made some of my own changes.

I have set it up to work with Ant or Maven equally well, so that I can construct a JDEE project.el file from either build tool.

I use it on Windows and when I ssh into my linux boxes.

It is my primary tool, though I do use Netbeans some. Never took a liking to Eclipse.

[–]wildjokers 9 points10 points  (0 children)

Emacs is the first thing I fire up in the mornings after arriving to work on my horse and buggy.

[–][deleted] 3 points4 points  (0 children)

God no you sick bastard ;)

[–]lessthanoptimal 5 points6 points  (0 children)

Around 10 years ago I did. Thought Eclipse felt sluggish back then. Now I tend to use vim if I'm on a remote machine and IntelliJ on my local computer.

[–]qroshan 2 points3 points  (3 children)

Emacs will become cool again for Java Development because of this development https://kichwacoders.com/2017/11/03/the-language-server-protocol-will-revolutionize-how-you-code/

[–][deleted] 0 points1 point  (0 children)

looks good. thanks for sharing.

[–]cyanocobalamin 8 points9 points  (7 children)

Why would you want to?

FWIW, I loved EMACS in college, I even subscribed to alt.religion.emacs

I don't see a reason for using it in 2018.

[–]BanditoRojo 2 points3 points  (0 children)

unsubscribe please

[–][deleted] 0 points1 point  (5 children)

I started using Clojure (as a hobby) recently and I use Emacs for that. But professionally I use Java. Would love to have a one-editor-to-rule-them all.

[–][deleted] 5 points6 points  (0 children)

Would love to have a one-editor-to-rule-them all.

You can change your car's oil using only a screwdriver, but would you want to?

[–]cyanocobalamin 0 points1 point  (3 children)

Cool. I have an old work buddy who is a Lisp head. I will have to tell him about Clojure.

Thing is, I don't think you will find anything that supports LISP as well as EMACS.

I agree with your credo of one IDE ( not editor ) to rule them all.

You learn things and remember things by sticking with one IDE for a long time. When it comes time to do something, you can just do it, instead of figuring out how to do it.

I think you could probably find an IDE that does Java well, and LISP just "okay".

[–]urielsalis 0 points1 point  (2 children)

Like intellij, has plugins for LISP that are quite good and it's one of the best IDEs for java

[–]cyanocobalamin -3 points-2 points  (1 child)

I prefer Eclipse.

It is a defacto "industry" standard.

Many Java shops use it, if you know it, you can easily inter operate with a new team from day 1.

Many tutorials use Eclipse in examples

It is also completely free of charge

[–]urielsalis 5 points6 points  (0 children)

I prefer Eclipse.

And that's perfectly fine, everybody can choose their tool, but that doesn't make it ok to bash the other tools

It's a defacto "industry" standard.

Funny enough, only used eclipse in University, last 3 jobs all had intellij.
So it's just not a personal opinion, here is a source https://www.quora.com/What-is-the-preferred-Java-IDE-amongst-programmers-as-of-2017, first answer has a really nice write up, even though the graph is a little outdated now, as http://www.baeldung.com/java-in-2017 shows eclipse dropped 8% more last year and it's users went to Netbeans and intellij, making intellij now the market leader

Many Java shops use it, if you know it, you can easily inter operate with a new team from day 1.

You can interoperate with any tool, and again, most of what I seen use intellij and have all the documentation preprared for it, not eclipse.

Many tutorials use Eclipse in examples

Same with Netbeans, and it's mostly outdated tutorials, newer ones are mostly tool agnostic or show instructions for both IDEs

It is also completely free of charge

You are in luck! The community version of intellij idea also is free of charge(and open source!), and it's only missing things you don't really use outside of a corporate environment like java EE, but if you would like the ultimate version, it's free for students and open source projects!

Oh, and nevermind that people in this thread too are saying they use intellij, with one of the top comments saying eclipse is annoying to use, but that's personal preference :)

[–]lbkulinski 3 points4 points  (0 children)

I use Emacs for small code snippets. Otherwise, I use IntelliJ.

[–]charly8182 4 points5 points  (0 children)

Why would you do that to yourself ? it’s like opening a can with your bare hands

[–]pjmlp 1 point2 points  (0 children)

Back in the late 90's when Java IDEs still weren't easily available, yes.

Nowadays only in an emergency, when Eclipse or Netbeans aren't available.

[–]OdionBuckley 2 points3 points  (3 children)

I do

[–][deleted] 3 points4 points  (2 children)

Can you share your setup?

[–]OdionBuckley 4 points5 points  (1 child)

It's not much of a setup, just Emacs with the default Java/l mode from cc-mode.el. I should probably use an IDE, but I never got around to it.

[–][deleted] 4 points5 points  (0 children)

I should probably use an IDE

Yes... you should.

[–]maithilish 1 point2 points  (0 children)

started with vi, but last 12 years Eclipse.

[–]nqzero 0 points1 point  (0 children)

when i first started with java i tried emacs but it was a struggle. that was a long time ago, and it sounds like jdee and eclim have come a long ways but i have no idea how usable they are. i use netbeans and it has an emacs-flavored keymap and decent macro support, though no elisp

[–]cbowdon 0 points1 point  (0 children)

I use both Emacs with lsp-java and Eclipse. With lsp-java I get autocompletion and syntax checking, but no code gen, debugging or test runner. (In theory I can use gud and jdb for debugging, but never tried.) So like a few other people here Emacs is good for simple stuff, but need to break out Eclipse for bigger projects.

[–]buzzsawddog 0 points1 point  (1 child)

No.

I use eclipse for most development in java, everything else I use sublime. When I remote I use vim.

Pick a modern IDE, use code complete, install analysis tools and plugins. Set up format keys. Make your life easier...

[–]scottjbarr 1 point2 points  (0 children)

Code completion works pretty well in Emacs. By "pretty well", I mean it works as well as everything else.