You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am with ubuntu and I have installed, with asdf, openjdk version "16.0.2" 2021-07-20.
Moreover, when I do the command
echo $JAVA_HOME
I have the following result:
/home/user/.dotfiles/.asdf/installs/java/openjdk-16.0.2
Which is for me quite normal.
Moreover, I can compile and launch a java program.
However, when I try to install jdtls with the following command: lsp-install-server jdtls, I get this error:
JAVA_HOME is not defined correctly.
Complete error:
sh mvnw -Djdt.js.server.root=/home/user/.dotfiles/.emacs.d/var/lsp-java/eclipse.jdt.ls/server/ -Djunit.runner. root=/home/user/.dotfiles/.emacs.d/var/lsp-java/eclipse.jdt.ls/test-runner/ -Djunit.runner.fileName=junit-platform-console-standalone. jar -Djava.debug.root=/home/user/.dotfiles/.emacs.d/var/lsp-java/eclipse.jdt.ls/server/bundles clean package -Djdt.download.url=https://download.eclipse.org/jdtls/milestones/1.5.0/jdt-language-server-1.5.0-202110191539.tar.gz
Error: JAVA_HOME is not defined correctly.
We cannot execute
Thanks in advance for your future answers
The text was updated successfully, but these errors were encountered:
Had the same issue on MacOS with zsh and homebrew-installed Emacs. What worked for me is moving the export JAVA_HOME... to the ~/.zshenv file instead of the ~/.zshrc. Apparently the latter one is intended for configuring an interactive shell and Emacs does not make use of it.
Hello,
I am with ubuntu and I have installed, with asdf, openjdk version "16.0.2" 2021-07-20.
Moreover, when I do the command
echo $JAVA_HOME
I have the following result:
/home/user/.dotfiles/.asdf/installs/java/openjdk-16.0.2
Which is for me quite normal.
Moreover, I can compile and launch a java program.
However, when I try to install jdtls with the following command: lsp-install-server jdtls, I get this error:
JAVA_HOME is not defined correctly.
Complete error:
sh mvnw -Djdt.js.server.root=/home/user/.dotfiles/.emacs.d/var/lsp-java/eclipse.jdt.ls/server/ -Djunit.runner. root=/home/user/.dotfiles/.emacs.d/var/lsp-java/eclipse.jdt.ls/test-runner/ -Djunit.runner.fileName=junit-platform-console-standalone. jar -Djava.debug.root=/home/user/.dotfiles/.emacs.d/var/lsp-java/eclipse.jdt.ls/server/bundles clean package -Djdt.download.url=https://download.eclipse.org/jdtls/milestones/1.5.0/jdt-language-server-1.5.0-202110191539.tar.gz
Error: JAVA_HOME is not defined correctly.
We cannot execute
Thanks in advance for your future answers
The text was updated successfully, but these errors were encountered: