-   Linux - Software (
-   -   debian wheezy and java (

chiendarret 05-15-2012 02:44 AM

debian wheezy and java
Protocols how to activate java in debian are outdated; name and location of files have changed.

It would be useful that those who follow these affairs update the matter.

Thus, presently, with i386 wheezy, what can be installed with apt-get is

OpenJDK Envir (IceTea 6 1.11.1)
OpenJDK Client VM
in other words, java 6.

Firefox 12.0 blocks java 6, pretending that java 7 is installed, which involves alien/rpm and a lot of tricks that those - like me - use i386/amd64 for scientific computations have no time/ability to deal with.

Question: how and where to place a symlink in firefox to the debian installations (please with file locations for both firefox and debian) in order that java 6 is forced to be accepted by firefox. IF THAT IS POSSIBLE AT ALL. Such indications can be found on this forum but they are largely outdated, so that only the general strategy holds.

Thanks a lot

craigevil 05-15-2012 03:01 AM

See my blog howto:
Howto install Oracle Java on Debian - :

$ java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode)

Not much to it really. Takes less than 5 minutes to have a working Java 7 install that works on all browsers.
Basically 6 steps
1) Install java-package and fakeroot
2) download from Oracle
3) run fakeroot make-jpkg
4) Install with dpkg
5) Update java-alternatives
6) symlink browser plugin

or you can install Openjdk-7-jre and icedtea-plugin both of which are in the normal repos.

about:plugins java in Chrome

Java(TM) Plug-in 1.7.0_04 - Version: 1.7.0_04
Java plug-in for NPAPI-based browsers.
Name:        Java(TM) Plug-in 1.7.0_04
Description:        Java plug-in for NPAPI-based browsers.
Version:        1.7.0_04
Location:        /usr/lib/jvm/j2re1.7-oracle/lib/i386/
Type:        NPAPI

$ apt-cache policy oracle-j2re1.7
Installed: 1.7.0+update4
Candidate: 1.7.0+update4

chiendarret 05-16-2012 04:01 AM

Thanks. I have tried the shortest rout, uninstalling version 6 and installingversion 7 from debian regular repositories. Still, firefox does not find java. I was also unable to set correctly the sources.list to point to mozilla.deb maintainers.

May be that other problems have summed up: since a couple of days, before dealing wiuth java as above, the shell (bash) does not report history (even at the linux prompt, before starting gnome). Within gnome, the cursor works only forward; downward arrow raises a small window showing what looks like the X cursor.

In the alternatives, firefox does not appear as the executable were simply put under
/usr/localfirefox, with path in .bashrc.

I never created such a mess on my old desktop, and taking care of the work on GPU-CPU servers
(wheeze 64 where I never had problems) takes all my time

All times are GMT -5. The time now is 01:14 PM.