install java on Wheezy
hi
Howto install java and java browser plugin (iceweasel) on Wheezy? I cannot find sun java in the repos: Code:
# apt-cache search sun-java |
There's no sun-java in testing; http://packages.qa.debian.org/s/sun-...5T091708Z.html
You can get it from their web site and follow their instructions how to install it, or you can use pinning and install one from the stable non-free repo, then configure default Java; http://wiki.debian.org/Java/Sun |
Thx, I've installed these squeeze packages:
Code:
# ls -la |
In case you want the latest java from Debian Sid. My /etc/apt/sources.list on my box looks like.
Code:
Repos: Active apt sources in file: /etc/apt/sources.list Code:
su -c 'echo "deb ftp://ftp.us.debian.org/debian/ sid main non-free">/etc/apt/sources.list.d/java.list && apt-get update && apt-get install -t unstable sun-java6-bin sun-java6-jre sun-java6-fonts sun-java6-plugin && rm -f -r /etc/apt/sources.list.d/java.list' Code:
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. the whole readout on my box looks like Code:
Ign http://download.jitsi.org unstable/ InRelease |
Yep, that's really interesting, thx a lot!
|
The official Java runtime in Debian (in fact all distros, because Oracle removed the free license) is OpenJDk. The browser plugin that goes with it is icedtea-plugin.
|
If you are running stable you can install sun-java6-plugin.
If you are on testing or sid do: apt-get install openjdk-6-jre icedtea-plugin Or feel free to search the forum or Google for how to install Oracle Java. Some more info : New work on java-package : http://lists.debian.org/debian-java/.../msg00000.html Debian User Forums • View topic - Info: Removal of sun-java6 from the archive : http://forums.debian.net/viewtopic.php?f=10&t=73650 Debian User Forums • View topic - [SOLVED] sun-java6-jdk has been removed from wheezy? : http://forums.debian.net/viewtopic.php?f=10&t=71969 Removal of sun-java6 from Debian - http://sylvestre.ledru.info/blog/syl...a6_from_debian Quote:
$ apt-cache policy icedtea-plugin icedtea-plugin: Installed: 1.1.3-2 Candidate: 1.1.3-2 Version table: *** 1.1.3-2 0 500 http://ftp.us.debian.org/debian/ unstable/main i386 Packages 100 /var/lib/dpkg/status $ java -version java version "1.7.0_147-icedtea" OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-1) OpenJDK Client VM (build 21.0-b17, mixed mode, sharing) |
The Oracle java jre 7 works well.
If you have Google chrome on your system it'll complain about missing plugin with jre 6. |
Be careful with openjdk 7. Some java apps run only with 6 series java.
|
Thx to Oracle, it seems to be a big java jungle!
|
java-package is back in Debian sid.
apt-get install java-package download the .bin from Oracle as root make-jpkg <java-binary-package-name>.bin dpkg -i <created-package-name>.deb Then symlink the plugin to the Mozilla/Firefox directory as root do: cd /usr/lib/mozilla/plugins ln -s /usr/lib/jvm/j2re1.6-oracle/lib/i386/libnpjp2.so Check Iceweasel/Firefox/Chrome etc that the plugin is installed. about:plugins should show: Quote:
update-alternatives --config java It should show something like: Code:
# update-alternatives --config java |
BTW has someone tried to install openjdk-6-jre or openjdk-7-jre on Wheezy?
Code:
# apt-cache search openjdk |
I stick with the Oracle java which has to be updated manually.
I update when I can't play yahoo games. |
$ java -version
java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode) $ apt-cache policy oracle-j2re1.7 oracle-j2re1.7: Installed: 1.7.0+update9 Candidate: 1.7.0+update9 I stopped using Openjdk close to a year ago, back when Openjdk7 wanted to pull in half of Gnome. |
Quote:
Code:
# apt-get install openjdk-7-jre After this operation, 95.9 MB of additional disk space will be used. > Aw, cmon man |
All times are GMT -5. The time now is 12:27 PM. |