Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-15-2012, 02:44 AM   #1
Registered: Mar 2007
Posts: 255

Rep: Reputation: 16
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
Old 05-15-2012, 03:01 AM   #2
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
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/
$ apt-cache policy oracle-j2re1.7
Installed: 1.7.0+update4
Candidate: 1.7.0+update4
Old 05-16-2012, 04:01 AM   #3
Registered: Mar 2007
Posts: 255

Original Poster
Rep: Reputation: 16
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
install java on Wheezy cccc Debian 18 05-30-2013 11:19 AM
[SOLVED] Newly installed debian sid & saved debian wheezy home would like to transfer files EDDY1 Linux - Newbie 11 01-20-2012 08:43 PM
[SOLVED] Java and Vuze installation on KDE Debian Wheezy sid infoslaw Linux - Newbie 11 12-28-2011 09:24 AM
LXer: Debian to offer MultiArch support with Debian Wheezy 7 in 2013 LXer Syndicated Linux News 0 08-11-2011 02:50 AM
LXer: Debian looking at a June 2012 freeze for Debian Wheezy LXer Syndicated Linux News 0 08-10-2011 11:00 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration