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 installation description in Readme.md #2153

Open
lbthomsen opened this issue Nov 27, 2017 · 2 comments
Open

Java installation description in Readme.md #2153

lbthomsen opened this issue Nov 27, 2017 · 2 comments
Assignees

Comments

@lbthomsen
Copy link
Contributor

lbthomsen commented Nov 27, 2017

The approach is slightly messy. Cleaner on Debian/Ubunto would be to use the tools for handling java packages. Assuming jdk-8u152-linux-x64.tar.gz has been downloaded from Oracle, the following steps should work on both Debian and Ubuntu:

sudo apt-get install java-common java-package

Then use make-jpkg to build a Debian file from the downloaded package:

make-jpkg Downloads/jdk-8u152-linux-x64.tar.gz

This will result in a oracle-java8-jdk_8u152_amd64.deb which can simply be installed:

sudo dpkg --install oracle-java8-jdk_8u152_amd64.deb

The java-common provides update-java-alternatives which can be used to switch jvm at any time.

@akarasulu
Copy link
Contributor

Vagrant or Docker image to the rescue?

@lbthomsen
Copy link
Contributor Author

No, no - this was merely a comment on the readme. The way it is described in the readme will work, but it will confuse matters if a previous debian/ubuntu java is installed already (as in some links will point to different jvms). The approach described above will ensure that it doesn't conflict with Debian's way of doing things.

@ibragim13kz ibragim13kz added this to the PeerOS April 16/April 30 milestone Apr 3, 2018
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

3 participants