Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with leiningen's detection of Java #99

Closed
abhi18av opened this issue Aug 28, 2017 · 5 comments
Closed

Error with leiningen's detection of Java #99

abhi18av opened this issue Aug 28, 2017 · 5 comments

Comments

@abhi18av
Copy link

Hi @shyiko

I think that the way jabba currently works raises an error with leiningen.

It works fine while I'm in the terminal but when I use the spacemacs and cider for clojure developement it's not able to detect the installed java at all.

I've raised an issue here.

syl20bnr/spacemacs#9501

@abhi18av
Copy link
Author

I do realize that there's a default command in jabba but doesn't seem to work either.

 jabba alias default zulu@1.8.144

@shyiko
Copy link
Owner

shyiko commented Aug 28, 2017

Hi @abhi18av.

jabba use modifies JAVA_HOME & PATH env vars inside "current session" only. Either make sure Emacs is launched in the environment where JAVA_HOME & PATH have been modified (when you open a new shell jabba use default is called automatically) or FAQ > How do I switch java globally?.

@shyiko shyiko closed this as completed Aug 28, 2017
@abhi18av
Copy link
Author

abhi18av commented Aug 28, 2017 via email

@shyiko
Copy link
Owner

shyiko commented Aug 28, 2017

@abhi18av usually sourcing ~/.bashrc from ~/.bash_profile is enough (see https://ss64.com/osx/syntax-bashrc.html for details).

the only reliable way to switch java globaly on macOS is ln -s to /usr/local/bin :). Any other solution that I know tends to break when you upgrade the system.

@abhi18av
Copy link
Author

Yup, that did it! Thanks man 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants