![openjdk 7 debian openjdk 7 debian](https://2.bp.blogspot.com/-mHyAQWzNVLI/XLiNtdmup7I/AAAAAAAACqs/ZCcwVo62OBMoOmRszQzr344Za5KGj-OiACLcBGAs/s1600/zulu-openjdk-ubuntu-debian-rhel.png)
You could install that and expect it to install JDK7 for you. There is also a meta package offered by Oracle that will run an installer for you: oracle-java7-installer. You will see a list that will contain Java 7 and 8 versions from Oracle and the OpenJDK set.
#Openjdk 7 debian update#
Then, we will update APT indices: apt-get updateĪnd don't forget to exit the privileged session: exit Next, we should fetch the key for the repositories so that APT can trust packages it downloads from the newly introduced sources: apt-key adv -keyserver -recv-keys EEA14886Īfter this, 1 key should have been imported. Then we will add the repositories: echo "deb precise main" | tee -a /etc/apt/sources.listĮcho "deb-src precise main" | tee -a /etc/apt/sources.listĮach line will also output the newly added repository, so don't panic if you get some output. To make things simpler, we will first login to your sudo prompt: sudo. This includes adding the repositories to your sources.list, adding the key, and then updating APT indices. I'm going to outline it below.įirst, you will need to inform your Squeeze installation's APT that it should look at a repository that does offer instances of Java 7 (and beyond). There is a nice answer here that worked out pretty well for me. With the unmanaged installation (option 3) this is much more tricky to get working reliably.Īnyway, I would go with the first option. With the second option, you should at least have an easy way of making Java 7 your default java.
![openjdk 7 debian openjdk 7 debian](https://4.bp.blogspot.com/-c78sRwQZhtA/Ws4VHc8-SXI/AAAAAAAAALY/osk7mtWxvWsqC5h-zxU5cMOYD67f6CvgACLcBGAs/s1600/oracle-java10-debian.png)
And if you need more up to date software than is in current stable, you may have to use the next-stable version. The first option has one big big big advantage: you get automatic security updates. Try to build the openjdk-7 package from wheezy on squeeze ( should work, but it is not on backports yet!).So, at the time Debian squeeze was released, OpenJDK 7 was not ready to be used (not yet "stable"). Ranging from excessive memory use with AWT to security issues (ok, IIRC these also affected Java 6).
![openjdk 7 debian openjdk 7 debian](https://i.stack.imgur.com/z9G8a.png)
Debian squeeze apparently does not include OpenJDK 7 yet.Īs you might know, early version of Java 7 had a number of issues.