Hello. 'cider-jack-in' returns the following error: "...error in process sentinel: Could not start nREPL server: ' "java" ' is not recognized as an internal or external command, operable program or batch file..." I am using windows 11, emacs 30.1, doom 3.0.0, java 24.0.1 and jdk 24. Thank you for your help.
Seems that Java is not on Emacs’s exec-path, that’s why it fails to start.
You can do C-h v exec-path for more details.
This thread is closed. I uninstalled then reinstalled Emacs, Java, Clojure and Leiningen. Now things are working well. I still have a lot to learn about Emacs etc. 🙂
I added (add-to-list 'exec-path "c:\\Users\\Program Files\\Java\\jdk-24\\bin") to the '.doom.d/config.el' file, but now emacs gives me an error on start up!
I have resolved the above issue (my bad) . The 'exec-path' for Java is now correct. However 'cider-jack-in' now gives the following error message "...error in process sentinel: Could not start nREPL server: ' "Java" ' is not recognized as an internal or external command, operable program or batch file..."?
I believe Emacs is finding Java because in the Emacs shell buffer when I enter 'java --version' it returns 'java 24.0.1 2025-04-15...'