You are not logged in.
i need to install latest version of jre. currently installed is javac 1.7.0_151 but need 1.8.x.
apt-get returns my version is the latest. what is the correct repository i need to add so i can get the latest jre?
Offline
You can download jre from oracle, the last is 9.0.4 then you untar the file and create symlynks to the files in the bin directory of the java directory to the bin directory in your home directory.
Offline
You should be able to
sudo apt-get install openjdk-8-jreand have a 1.8.x java.
Offline
You can download jre from oracle, the last is 9.0.4 then you untar the file and create symlynks to the files in the bin directory of the java directory to the bin directory in your home directory.
thanks for the tip.
a bit surprised a simple 'apt-get install <app>' couldn't update the openjdk version.
Offline
You should be able to
sudo apt-get install openjdk-8-jreand have a 1.8.x java.
i thought so too prior to putting question here. below is the returned output from apt-get:
$ sudo apt-get install openjdk-8-jre
[sudo] password for ?:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-8-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openjdk-8-jre' has no installation candidatedo i need to teak the /etc/apt/sources.list or add/edit a list in /etc/apt/sources.list.d ?
Offline
Running stretch here so was not a problem for me. If your sources are from jessie you will have to add backports to get openjdk-8-jre.
“The university is well structured, well tooled, to turn out people with all the sharp edges worn off...." Mario Savio
"Protections for anonymous speech are vital to democratic discourse". Help enforce our right to free and anonymous speech by running a Tor relay.
Offline
^ and how to install packages from backports is described in 'bl-welcome'.
or here: https://wiki.debian.org/Backports#Insta … mmand_line
Offline
Running stretch here so was not a problem for me. If your sources are from jessie you will have to add backports to get openjdk-8-jre.
looks like that is the issue. thanks for pointing that out. i'll give that a go.
Offline
^ and how to install packages from backports is described in 'bl-welcome'.
or here: https://wiki.debian.org/Backports#Insta … mmand_line
i'll check up on that. appreciate the help and links.
thanks all.
Offline
Looks like the jessie-backports version is getting stale concerning security holes. Let see me see about cooking up a backport of the current Stretch update on the openSUSE build service. It's a pretty hefty build.
Offline
after trying the backport suggestions, etc., and still getting apt errors trying to update my openjdk-7-jre to v8 or v9, i decided on a fresh install with "Deuterium i386". this particular notebook is an old ibm thinkpad x86 pentium and Bunsen runs well on it for what i use it for. easier just tar'ing up my /home/<usr> dir and on with a fresh install. and as @stevep mentioned, updated version(s) patches up some old sec issues and what not.
thanks all for helping with your suggestions, much appreciated!!
Offline
Here's the progress of the backport from Stretch. Still compiling, then the test suite takes several times as long to run: https://build.opensuse.org/package/show … njdk-8-jre
You should have been able to install the jessie-backports version, though, especially since there's no other openjdk-8 packages in Jessie to compete with it.
Offline
after trying the backport suggestions, etc., and still getting apt errors trying to update my openjdk-7-jre to v8 or v9
If you post exactly what you tried (along with the full error messages), we could probably tell you where you went wrong — as stevep notes the backported packages should have been installable.
Offline
Well, the OBS builds failed. I'm requesting build workers with more RAM to see if that works. We do have a backport of the Stretch security update in the MX main repo for Jessie, so I know it's possible to build on a local machine. I built the MX backports on generic Jessie pbuilder platforms, so they won't have compatibility issues.
Offline
x4OUBg wrote:after trying the backport suggestions, etc., and still getting apt errors trying to update my openjdk-7-jre to v8 or v9
If you post exactly what you tried (along with the full error messages), we could probably tell you where you went wrong — as stevep notes the backported packages should have been installable.
i'm on bunsen-hydrogen...
retrying, i went to https://www.bunsenlabs.org/repositories.html ensured i had the listed repo's in the apt files & re-imported signing key.
also went to, https://wiki.debian.org/Backports#Insta … mmand_line and added the listed backports repository.
sudo apg-get update
sudo apt-get -t jessie-backports install openjdk-8-jre
{pkg upgraded}
adding the two lines from the debian.org/Backports[...] page did the trick. i must have missed that the first time. <usr err>
thanks for getting me to retry again.
Offline
The OBS builds worked when I removed an optional build-depend for openjdk-8 packages and just left the ones for openjdk-7. So if you want the latest security update, the OBS repo is the only solution for Jessie right now.
Now let me just add openjdk-9 to it. ![]()
Remember that default-jre is still 7 in Jessie. You can use the alternatives system to set yours to 8 if you keep having 7 show up.
Last edited by stevep (2018-02-14 22:53:38)
Offline
The OBS builds worked when I removed an optional build-depend for openjdk-8 packages and just left the ones for openjdk-7. So if you want the latest security update, the OBS repo is the only solution for Jessie right now.
Now let me just add openjdk-9 to it.
Remember that default-jre is still 7 in Jessie. You can use the alternatives system to set yours to 8 if you keep having 7 show up.
i got the openjdk-8-jre to install {thx to all here}. so for now, i'm good with that version. i was running up against v7 always being checked vs installing v8. now that i did get v8 to install ok, i'm good for the time being. appreciate the help
Offline