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

JAVA_HOME is not set properly on Linux #45

Open
dsavenko opened this issue Sep 11, 2017 · 0 comments
Open

JAVA_HOME is not set properly on Linux #45

dsavenko opened this issue Sep 11, 2017 · 0 comments
Labels

Comments

@dsavenko
Copy link
Contributor

dsavenko commented Sep 11, 2017

Hi,

ck detect soft:compiler.java may not set JAVA_HOME properly. It searches for javac and may find a symlink /usr/lib/javac. If this option is chosen, JAVA_HOME is set to /usr. In fact, it should be set to something like /usr/lib/jvm/java-8-openjdk-amd64.

One way to fix it is to search for rt.jar instead of javac. It's not symlinked anywhere.

But, I guess, the best way would be to add symlink detection/resolution, so that symlinks are not considered at all.

@dsavenko dsavenko added the bug label Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant