Hi
I managed to setup lsp and java for emacs. I can compile and all works fine.
I set compile command in init.el to run javac and java command so I see the result, as below.
(setq compile-command "javac
YourJavaFileName.java
&& java YourJavaClass")
For now I have to replace "YourJavaClass" with current class. Can anyone help me to automatically pass currently opened class name to that command, please?
Thanks!
Hi. This looks great! Congrats.
I set up my lsp-java and it works fine. Lsp server is running, compilation is good. I can compile and run a single class but I can not run a class if an object is created and object is in another class. (I imported the project a few times.) It's a basic java project, the one I created via intellij. Nothing special in pom.xml.
Can you please help me to run it.
(Not an emacs expert, simplicity is appreciated.)
Thanks!