vscode-java VS eclipse.jdt.ls

Compare vscode-java vs eclipse.jdt.ls and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
vscode-java eclipse.jdt.ls
35 30
2,038 1,649
1.3% 3.3%
9.0 9.3
3 days ago 3 days ago
TypeScript Java
Eclipse Public License 2.0 Eclipse Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

vscode-java

Posts with mentions or reviews of vscode-java. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-12.
  • language support for java client couldn't create connection to server
    1 project | /r/vscode | 24 Apr 2023
    Can this issue on github help?
  • Java compiler problem with enums using windows1252 encoding
    1 project | /r/vscode | 13 Apr 2023
    More details about the problem over this issue on github: https://github.com/redhat-developer/vscode-java/issues/3060
  • How to automatically format Java code similar to Rust (rustfmt)?
    2 projects | /r/rust | 12 Apr 2023
    I've tried Google Java Format, following the settings here,
  • Problem with genSources
    1 project | /r/fabricmc | 18 Mar 2023
    It seems I actually got it to work in vscode. I found this thread, in which one person told to add: "java.eclipse.downloadSources": true, "java.maven.downloadSources": true, to the settings.json and it seems to work just fine now. Still thanks for your responses :)
  • Java Intellisense keeps breaking, every few minutes. Need to Clean Java Language Server Workspace to restore. MacOS, 1.75.0
    1 project | /r/vscode | 16 Feb 2023
    Can the retirement version solve the problem? If you are convinced that it is a version of BUG, you can submit a report on GitHub to get official personnel responses.
  • Plz Microsoft could you finally give YOUR OWN PLATFORM the care it deserves?
    2 projects | /r/ProgrammerHumor | 1 Jan 2023
    Good news :) https://github.com/redhat-developer/vscode-java/wiki/Formatter-settings
  • Child Folders that contains a java file in them is requiring a package statement how do I disable that feature
    1 project | /r/vscode | 30 Oct 2022
    There is currently no configuration to turn off. If you really need it, you can submit a feature request on GitHub.
  • Help setting up jdtls for java
    6 projects | /r/neovim | 2 Oct 2022
    -- πŸ’€ "/usr/lib/jvm/java-11-openjdk/", -- or '/path/to/java11_or_newer/bin/java' -- depends on if `java` is in your $PATH env variable and if it points to the right version. "-Declipse.application=org.eclipse.jdt.ls.core.id1", "-Dosgi.bundles.defaultStartLevel=4", "-Declipse.product=org.eclipse.jdt.ls.core.product", "-Dlog.protocol=true", "-Dlog.level=ALL", "-javaagent:" .. home .. "/.local/share/nvim/mason/packages/jdtls/lombok.jar", "-Xms1g", "--add-modules=ALL-SYSTEM", "--add-opens", "java.base/java.util=ALL-UNNAMED", "--add-opens", "java.base/java.lang=ALL-UNNAMED", -- πŸ’€ "-jar", vim.fn.glob( home .. "/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar" ), -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ -- Must point to the Change this to -- eclipse.jdt.ls installation the actual version -- πŸ’€ "-configuration", home .. "/.local/share/nvim/mason/packages/jdtls/config_" .. CONFIG, -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ -- Must point to the Change to one of `linux`, `win` or `mac` -- eclipse.jdt.ls installation Depending on your system. -- πŸ’€ -- See `data directory configuration` section in the README "-data", workspace_dir, }, on_attach = { require("jdtls").setup_dap({ hotcodereplace = "auto" }), require("jdtls.dap").setup_dap_main_class_configs(), }, capabilities = capabilities, -- πŸ’€ -- This is the default if not provided, you can remove it. Or adjust as needed. -- One dedicated LSP server & client will be started per unique root_dir root_dir = root_dir, -- Here you can configure eclipse.jdt.ls specific settings -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request -- or https://github.com/redhat-developer/vscode-java#supported-vs-code-settings -- for a list of options settings = { java = { eclipse = { downloadSources = true, }, configuration = { updateBuildConfiguration = "interactive", }, maven = { downloadSources = true, }, implementationsCodeLens = { enabled = true, }, referencesCodeLens = { enabled = true, }, references = { includeDecompiledSources = true, }, inlayHints = { parameterNames = { enabled = "all", -- literals, all, none }, }, format = { enabled = false, }, }, signatureHelp = { enabled = true }, completion = { favoriteStaticMembers = { "org.hamcrest.MatcherAssert.assertThat", "org.hamcrest.Matchers.*", "org.hamcrest.CoreMatchers.*", "org.junit.jupiter.api.Assertions.*", "java.util.Objects.requireNonNull", "java.util.Objects.requireNonNullElse", "org.mockito.Mockito.*", }, }, contentProvider = { preferred = "fernflower" }, extendedClientCapabilities = extendedClientCapabilities, sources = { organizeImports = { starThreshold = 9999, staticStarThreshold = 9999, }, }, codeGeneration = { toString = { template = "${object.className}{${member.name()}=${member.value}, ${otherMembers}}", }, useBlocks = true, }, }, flags = { allow_incremental_sync = true, }, -- Language server `initializationOptions` -- You need to extend the `bundles` with paths to jar files -- if you want to use additional eclipse.jdt.ls plugins. -- -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation -- -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this
  • No Syntax Highlighting for Java
    1 project | /r/vscode | 9 Sep 2022
    This is the officially provided extension. if you follow this documentation, still no syntax highlighting, may really be a bug, suggest you file an issue on GitHub.
  • Java on Visual Studio Code Update – June 2022
    1 project | /r/java | 30 Jun 2022
    Try this fix but don't forget VS Code Lombok extension project has not been maintained for long time。

eclipse.jdt.ls

Posts with mentions or reviews of eclipse.jdt.ls. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-08.
  • 2.5 Million Java Developers on Visual Studio Code. Microsoft and Red Hat shares Joint Roadmap for Next 6 Months Together
    1 project | /r/java | 11 Dec 2023
    Thanks Eclipse : https://github.com/eclipse-jdtls/eclipse.jdt.ls
  • How to use nvim-jdtls for Java and nvim-lspconfig for everything else?
    2 projects | /r/neovim | 8 Apr 2023
    I installed eclipse jdtls which worked for Java, but I was not able to go to definitions for methods/classes outside of my project (ie, libraries and such, something like in IntelliJ where you can go to the definition or implementation for the library code), so I thought it may be a limitation of nvim-lspconfig
  • jdtls spams messages in LazyVim
    1 project | /r/neovim | 20 Feb 2023
    return { { "neovim/nvim-lspconfig", dependencies = { "mfussenegger/nvim-jdtls", init = function() require("lazyvim.util").on_attach(function(_, buffer) -- stylua: ignore vim.keymap.set( "n", "di", "lua require'jdtls'.organize_imports()", { buffer = buffer, desc = "Organize Imports" } ) vim.keymap.set( "n", "dt", "lua require'jdtls'.test_class()", { buffer = buffer, desc = "Test Class" } ) vim.keymap.set( "n", "dn", "lua require'jdtls'.test_nearest_method()", { buffer = buffer, desc = "Test Nearest Method" } ) vim.keymap.set( "v", "de", "lua require('jdtls').extract_variable(true)", { buffer = buffer, desc = "Extract Variable" } ) vim.keymap.set( "n", "de", "lua require('jdtls').extract_variable()", { buffer = buffer, desc = "Extract Variable" } ) vim.keymap.set( "v", "dm", "lua require('jdtls').extract_method(true)", { buffer = buffer, desc = "Extract Method" } ) vim.keymap.set( "n", "cf", "lua vim.lsp.buf.formatting()", { buffer = buffer, desc = "Format" } ) end) end, }, ---@class PluginLspOpts opts = { ---@type lspconfig.options servers = {}, -- you can do any additional lsp server setup here -- return true if you don't want this server to be setup with lspconfig ---@type table setup = { -- example to setup with typescript.nvim jdtls = function(_, opts) local project_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t") -- vim.lsp.set_log_level('DEBUG') local workspace_dir = "/home/jake/.workspace/" .. project_name -- See `:help vim.lsp.start_client` for an overview of the supported `config` options. local config = { -- The command that starts the language server -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line cmd = { "java", -- or '/path/to/java17_or_newer/bin/java' "-javaagent:/home/jake/.local/share/java/lombok.jar", -- '-Xbootclasspath/a:/home/jake/.local/share/java/lombok.jar', "-Declipse.application=org.eclipse.jdt.ls.core.id1", "-Dosgi.bundles.defaultStartLevel=4", "-Declipse.product=org.eclipse.jdt.ls.core.product", "-Dlog.protocol=true", "-Dlog.level=ALL", -- '-noverify', "-Xms1g", "--add-modules=ALL-SYSTEM", "--add-opens", "java.base/java.util=ALL-UNNAMED", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-jar", vim.fn.glob("/usr/share/java/jdtls/plugins/org.eclipse.equinox.launcher_*.jar"), "-configuration", "/usr/share/java/jdtls/config_linux", "-data", workspace_dir, }, root_dir = require("jdtls.setup").find_root({ ".git", "mvnw", "gradlew" settings = { java = {}, }, } require("jdtls").start_or_attach(config) return true end, -- Specify * to use this function as a fallback for any server -- ["*"] = function(server, opts) end, }, }, }, }
  • Minecraft modding without the use of intellij
    1 project | /r/feedthebeast | 10 Feb 2023
    You can absolutely just use Gradle on the command line, and use a language server to get code intelligence in pretty much any editor you like. IntelliJ is very nice, especially for refactoring, but it doesn't have a giant advantage over any other editor, as long as you're sticking to mostly Java.
  • Where does the dislike/hate for Java come from?
    4 projects | /r/java | 31 Jan 2023
    Try neovim. Builtin support for language servers which provide the basis for IDE functionality, autocomplete, auto import, code actions, refactoring, etc. I believe VSCode uses jdtls on the backend and you can use the same thing with neovim.
  • java 19 in latest eclipse IDE
    3 projects | /r/java | 7 Dec 2022
    Is seems like valid manual to start language server here https://github.com/eclipse/eclipse.jdt.ls. Not sure what you mean by "starting it with other editors" though. It should be covered by editor own integration with the given LS.
  • Is VIM a trap?
    3 projects | /r/cscareerquestions | 10 Oct 2022
  • (Discussion) Which IDE is best for Java
    1 project | /r/java | 9 Oct 2022
  • What do you tells VSCode and Jetbrains naysayers
    1 project | /r/emacs | 7 Oct 2022
    But all of the above to say that Emacs can have the ability to some of if not more than VSCode. As others have said, the Jetbrains IDEs are a different story. They're built to actually understand the code you're writing. It's quite possible, with features like auto-insert and skeletons, to replicate some of the functionality that, say, IntelliJ does. For example, say you find-file into a new file for some Java project. When you first enter the buffer, you could setup a prompt to create a class, enum, interface etc. and then upon a selection, you have the basic relevant code for whatever the selection was made auto-inserted. Or you could just quit the prompt with C-g. Granted that takes some time to set up as well as recreating other smaller features that IntelliJ has. JDTLS can do some of this, but at the end of the day it's not a replacement for IntelliJ and I don't think JDTLS intends to be such.
  • Picnic loves Error Prone: producing high-quality and consistent Java code
    2 projects | /r/java | 6 Oct 2022
    Just the other day I tested VS Code Java again and apparently the Red Hat team that did the Java language support has gotten some level of null analysis turned on now. Thus I assume the Eclipse LSP https://github.com/eclipse/eclipse.jdt.ls has that support now.

What are some alternatives?

When comparing vscode-java and eclipse.jdt.ls you can also consider the following projects:

lsp-java - lsp-mode :heart: java

nvim-jdtls - Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls

bash-language-server - A language server for Bash

coc-java - Java extension for coc.nvim

vscode-haskell - VS Code extension for Haskell, powered by haskell-language-server

coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.

vscode-yaml - YAML support for VS Code with built-in kubernetes syntax support

IntelliJIDEA-Delightful - A charming and dazzling IntelliJ IDEA configuration!

styleguide - Style guides for Google-originated open-source projects

NeoVim-Delightful - A charming and dazzling NeoVim configuration!

vscode-java-dependency - Manage Java projects in Visual Studio Code.

vim-language-server - VImScript language server, LSP for vim script