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

RFE: document how to set JAVA_HOME #306

Open
langdon opened this issue Mar 7, 2019 · 2 comments
Open

RFE: document how to set JAVA_HOME #306

langdon opened this issue Mar 7, 2019 · 2 comments

Comments

@langdon
Copy link

langdon commented Mar 7, 2019

JAVA_HOME does not appear to be set by the rpm package installation of java-11-openjdk-devel. I can set it by hand but I think it would be great if the java page could recommend the best way (in particular, accounting for the alternatives setup).

PS: If I knew the best way, I would file a PR :(

@pvalena
Copy link
Contributor

pvalena commented Mar 8, 2019

@SMadani, @msrb any ideas / notes here?


You mean something equivalent to what we have in Go page, right?

$ echo 'export GOPATH=$HOME/go' >> $HOME/.bashrc
$ source $HOME/.bashrc

It would be good to be consisten with this across the all pages. IMO would be best to set ENVs in .bash_profile instead(corresponding issue).

@SMadani
Copy link
Contributor

SMadani commented Mar 8, 2019

I think the safest recommendation is as @pvalena suggests:

$ echo 'export JAVA_HOME=/usr/lib/jvm/java' >> ~/.bashrc
$ source ~/.bashrc

and if the user doesn't set alternatives, then the above should be java-11 instead of java.

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

No branches or pull requests

3 participants