-
Notifications
You must be signed in to change notification settings - Fork 271
Java
Junfeng Li edited this page Jun 18, 2018
·
9 revisions
- Install Eclipse JDT Language Server
- Create executable
jdtls
in path, with content:
#!/usr/bin/env sh
server={{ your server installation location }}
java \
-Declipse.application=org.eclipse.jdt.ls.core.id1 \
-Dosgi.bundles.defaultStartLevel=4 \
-Declipse.product=org.eclipse.jdt.ls.core.product \
-noverify \
-Xms1G \
-jar $server/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/plugins/org.eclipse.equinox.launcher_1.*.jar \
-configuration $server/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/config_linux/ \
"$@"
- Add to your vim config:
let g:LanguageClient_serverCommands = {
\ 'java': ['jdtls'],
\ }
All folders should be absolute.