Can't get Java auto-completion to work in Builder

I followed the instructions in the Gitlab project: I downloaded jdt-language-server-1.9.0-202203031534.tar.gz from the provided link, extracted it, made a symlink of /jdt-language-server-1.9.0-202203031534/bin/jdtls and put it in ~/.local/bin/, and also gave Builder access to ~/Software/jdt-language-server-1.9.0-202203031534 and ~/.local/share/bin after it didn’t work the first time, but it still doesn’t work. Any advice?

Builder is not a good Java IDE (and was never intended to be one). With jdtls you’ll get some basic functionality like code completion, but it’s a completely subpar experience compared to IDEA, Eclipse or Netbeans. As far as I’m aware, literally nobody uses Builder with Java, so you’re bound to encounter issues and bugs.

Anyway, I thought it was fun to try it, so I wrote a how-to some time ago on the java-gi website: Advanced usage - Java-GI

Possible reasons why it doesn’t work in your case:

  • You seem to be using a very old version of jdtls; I’d suggest trying with a newer version
  • Builder version 44 or newer is required
  • The project I tested it with, was built with Gradle. I didn’t try other build systems
  • You seem to be using a very old version of jdtls; I’d suggest trying with a newer version

I used the latest milestone I could find on the Eclipse website, 1.9.0.

  • Builder version 44 or newer is required

I used Builder 50.

1.9.0 is not the latest milestone. The releases are sorted alphabetically, the current latest one is 1.58.0.

By the way, you refer to ~/.local/share/bin in your original post, but I think it should be ~/.local/bin. (But as long as it’s in $PATH it should work.)

Sorry for the late reply. I did both of those things and it still doesn’t work.