How to configure where eclipse.jdt.ls is located? #788
-
When I enable eglot in a Java project, I get the following message:
I then provide the correct path:
Finally, I get the following message:
I answer yes and eglot successfully connects to the jdt server. However, then next time I open the same Java project, I get the same behaviour, I have to point eglot to the jdt. How can I configure this in my init file so that I don't have to configure the location each time I open a Java project? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I described a way to do it here: |
Beta Was this translation helpful? Give feedback.
-
Do you mean after you restart Emacs? Because it should remember the path until you exit Emacs. |
Beta Was this translation helpful? Give feedback.
-
Yes, after I restart Emacs. |
Beta Was this translation helpful? Give feedback.
-
You can go the traditional way, add it on your
or per project, of course. |
Beta Was this translation helpful? Give feedback.
You can go the traditional way, add it on your
$CLASSPATH
:CLASSPATH="$CLASSPATH:$HOME/.emacs.d/eclipse.jdt.ls/plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar"
or per project, of course.