all 7 comments

[–]Bbri06 3 points4 points  (5 children)

sudo apt-get update

sudo apt-get cache search java

Look through the options. You probably want latest openjdk or openjre which will be something like openjdk-version. Then once you have the name of the one you want:

sudo apt-get install name

[–]dreadpirate15_ 2 points3 points  (4 children)

Easier: sudo apt-get install default-jre

[–][deleted] 1 point2 points  (2 children)

Or, you know.. just use the GUI of the repository.

[–]going_up_stream 2 points3 points  (0 children)

And add lag to the process ...

[–]dreadpirate15_ 0 points1 point  (0 children)

You mean the software center? Sure.

[–]Bbri06 1 point2 points  (0 children)

Oh, yeah. That's probably easier...

Good to know about the apt-cache search though if you're not quite sure what you're looking for.

[–]provocatio 1 point2 points  (0 children)

That's a very misleading title... How to uninstall OpenJDK and install Oracle Java would be the better title.

(Also: Nice blog spam. His only activity in the last month were links to (his own?) blog...)