Skip to content

How to use existing openjdk-17 in Windows? #206

Closed Answered by s1n7ax
skaveesh asked this question in Q&A
Discussion options

You must be logged in to vote

@skaveesh Set jdk auto_install to false in config. You cannot pass arbitrary properties like java_home to plugin setup and expect it to work. Since you are new, Almost 90% of lua neovim plugins has configuration information in the README. Here is this plugin's configuration. All the properties I have defined are the default meaning If you are fine with the default, just call setup without any parameters. require('java').setup()

https://github.com/nvim-java/nvim-java?tab=readme-ov-file#wrench-configuration

However, in your case, you want to disable openjdk installation. So, calling setup like below will override auto_install but use rest of the default parameters as it is.

require('java').…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@skaveesh
Comment options

Answer selected by s1n7ax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants