Reputation: 47431
I am getting the below error whenever I try M-x nrepl-jack-in -
error in process sentinel: Could not start nREPL server: /usr/bin/lein: line 260: java: command not found
I am able to start the repl without any issues by lein repl or lein2 repl - both work.
Thanks, Murtaza
Upvotes: 5
Views: 1780
Reputation: 888
I had the same problem. Let me guess, you are launching Emacs from the application launcher? Applications launched this way apparently do not use your .bashrc file. If you do your PATH set up in your ~/.profile file instead it should work. You'll need to log out and in for it to take effect though.
Upvotes: 2
Reputation: 3057
You may have an different environment inside emacs from inside your shell. Is Java installed in the same place as lein? If you type M-x shell, and run java -help there does it work? What about "M-x shell-command java -help"
Upvotes: 1