Skip to content

Commit fe6e436

Browse files
Yilun Zhaogeorgewfraser
authored andcommitted
Fix some issues while installing (Vim)
1. Should download jdk to current dir 2. Use jlink in current dir in `scripts/link_linux.sh`
1 parent c2c3d60 commit fe6e436

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A Java [language server](https://github.com/Microsoft/vscode-languageserver-prot
1111
### Vim (with vim-lsc)
1212

1313
- Checkout this repository
14-
- Run `./scripts/download_{linux|mac|windows}.sh`
14+
- Run `./scripts/download_{linux|mac|windows}_jdk.sh`
1515
- Run `./scripts/link_{linux|mac|windows}.sh`
1616
- Run `mvn package -DskipTests`
1717
- Add the vim plugin [natebosch/vim-lsc](https://github.com/natebosch/vim-lsc) to your vimrc

scripts/link_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ JAVA_HOME="./jdks/linux/jdk-21"
88

99
# Build in dist/linux
1010
rm -rf dist/linux
11-
jlink \
11+
${JAVA_HOME}/bin/jlink \
1212
--module-path $JAVA_HOME/jmods \
1313
--add-modules java.base,java.compiler,java.logging,java.sql,java.xml,jdk.compiler,jdk.jdi,jdk.unsupported,jdk.zipfs \
1414
--output dist/linux \
1515
--no-header-files \
1616
--no-man-pages \
17-
--compress 2
17+
--compress 2

0 commit comments

Comments
 (0)