Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Jdtls not using the installed openjdk-17 #167

Open
3 tasks done
lpoto opened this issue Apr 24, 2024 · 0 comments
Open
3 tasks done

bug: Jdtls not using the installed openjdk-17 #167

lpoto opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lpoto
Copy link

lpoto commented Apr 24, 2024

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.0-dev-2324+g4948fa42e

Operating system/version

Ubuntu 22.04.3 LTS

Describe the bug

Even though the openjdk-17 is successfully installed and the correct JAVA_HOME and PATH are set up in cmd_env,
jdtls still uses a different version (when there is another java version's bin in the $PATH).

The only way I managed to go around this is by replacing "java" with the path to openjdk-17's binary in the jdtls cmd when auto_install = true.

Steps To Reproduce

  1. Have another java binary in the path
  2. configure nvim-java with jdk.auto_install = true

Expected Behavior

Jdtls should use the installed openjdk-17 when auto_install = true

@lpoto lpoto added the bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant