Howto install Oracle's Java on LMDE/Debian

Archived topics about LMDE 1 and LMDE 2
äxl

Re: Howto install Oracle's Java on LMDE/Debian

Post by äxl »

craigevil wrote:

Code: Select all

fakeroot make-jpkg /home/craig/Downloads/java/jre-7u4-linux-i586.tar.gz
Nice. :D Maybe you could edit your first post as Java 7 as tar.gz is the recommended version now.
zerozero

Re: Howto install Oracle's Java on LMDE/Debian

Post by zerozero »

äxl wrote:Maybe you could edit your first post as Java 7 as tar.gz is the recommended version now.
it's done already :D
äxl

Re: Howto install Oracle's Java on LMDE/Debian

Post by äxl »

Oh, alright. :oops: But the only difference is bin/tar.gz and the v.
7 is recommended anyway. For Web Start you can also do:

Code: Select all

update-alternatives --config javaws
craigevil

Re: Howto install Oracle's Java on LMDE/Debian

Post by craigevil »

Howto edited, now shows steps for Java 6 and Java 7.

Code: Select all

# update-alternatives --config javaws
There are 4 choices for the alternative javaws (providing /usr/bin/javaws).

  Selection    Path                                             Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/javaws   1061      auto mode
  1            /usr/lib/jvm/j2re1.6-oracle/bin/javaws            314       manual mode
* 2            /usr/lib/jvm/j2re1.7-oracle/bin/javaws            316       manual mode
  3            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/javaws   1061      manual mode
  4            /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws   1060      manual mode

Press enter to keep the current choice[*], or type selection number: 
My Firefox plugins
Plugins
  • DivX Browser Plug-In
  • Java(TM) Plug-in 1.7.0_04
  • KParts Plugin
  • LibreOffice Plug-in
  • mplayerplug-in is now gecko-mediaplayer 1.0.6
  • QuickTime Plug-in 7.6.9
  • RealPlayer 9
  • Shockwave Flash
  • Windows Media Player Plug-in

Code: Select all

# update-java-alternatives --list
j2re1.6-oracle 314 /usr/lib/jvm/j2re1.6-oracle
j2re1.7-oracle 316 /usr/lib/jvm/j2re1.7-oracle
java-1.6.0-openjdk-i386 1061 /usr/lib/jvm/java-1.6.0-openjdk-i386
CapitalG

Re: Howto install Oracle's Java on LMDE/Debian

Post by CapitalG »

i cant figure out what i did wrong? i keep getting ice tea web start? it wont start jdownloader.

Code: Select all

j2re1.6-oracle 314 /usr/lib/jvm/j2re1.6-oracle
java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64
i updated the lists also.
CapitalG

Re: Howto install Oracle's Java on LMDE/Debian

Post by CapitalG »

ok so im thinking its because i tried using the 64bit version of java? that doesnt have webstart? i need 32.

how do i remove what i have done? it wont let me build another one.

Code: Select all

Creating temporary directory: /tmp/make-jpkg.n4ko27vnUg
Loading plugins: /usr/share/java-package/common.sh /usr/share/java-package/j2re.sh /usr/share/java-package/j2sdk-doc.sh /usr/share/java-package/j2sdk.sh /usr/share/java-package/j2se.sh /usr/share/java-package/oracle-j2re.sh /usr/share/java-package/oracle-j2sdk-doc.sh /usr/share/java-package/oracle-j2sdk.sh

Detected Debian build architecture: amd64
Detected Debian GNU type: x86_64-linux-gnu

No matching plugin was found.
Removing temporary directory: done
äxl

Re: Howto install Oracle's Java on LMDE/Debian

Post by äxl »

The 64-bit version also has web start. Though I doubt you need it for JDownloader.
How do you start JD? What happens if you type in terminal:

Code: Select all

java -jar /path/to/your/jdownloader.jar
BTW: Context/menues won't work for me when I maximize JD's window. No matter what Java.
craigevil

Re: Howto install Oracle's Java on LMDE/Debian

Post by craigevil »

found another alternative that uses Java called keytool. Not a freaking clue what it does, but mine was set to Openjdk6 so it changed it to Oracle Java 7.

update-alternatives --list keytool
/usr/lib/jvm/j2re1.6-oracle/bin/keytool
/usr/lib/jvm/j2re1.7-oracle/bin/keytool
/usr/lib/jvm/java-6-openjdk-i386/jre/bin/keytool


update-alternatives --config keytool
There are 3 choices for the alternative keytool (providing /usr/bin/keytool).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/keytool 1061 auto mode
1 /usr/lib/jvm/j2re1.6-oracle/bin/keytool 314 manual mode
2 /usr/lib/jvm/j2re1.7-oracle/bin/keytool 316 manual mode
3 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/keytool 1061 manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/j2re1.7-oracle/bin/keytool to provide /usr/bin/keytool (keytool) in manual mode.

And another called tnameserv
update-alternatives --list tnameserv
/usr/lib/jvm/j2re1.6-oracle/bin/tnameserv
/usr/lib/jvm/j2re1.7-oracle/bin/tnameserv
/usr/lib/jvm/java-6-openjdk-i386/jre/bin/tnameserv

root@debian:/home/craig# update-alternatives --config tnameserv
There are 3 choices for the alternative tnameserv (providing /usr/bin/tnameserv).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/tnameserv 1061 auto mode
1 /usr/lib/jvm/j2re1.6-oracle/bin/tnameserv 314 manual mode
2 /usr/lib/jvm/j2re1.7-oracle/bin/tnameserv 316 manual mode
3 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/tnameserv 1061 manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/j2re1.7-oracle/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in manual mode

And another called servertool
# update-alternatives --list servertool
/usr/lib/jvm/j2re1.6-oracle/bin/servertool
/usr/lib/jvm/j2re1.7-oracle/bin/servertool
/usr/lib/jvm/java-6-openjdk-i386/jre/bin/servertool
root@debian:/home/craig# update-alternatives --config servertool
There are 3 choices for the alternative servertool (providing /usr/bin/servertool).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/servertool 1061 auto mode
1 /usr/lib/jvm/j2re1.6-oracle/bin/servertool 314 manual mode
2 /usr/lib/jvm/j2re1.7-oracle/bin/servertool 316 manual mode
3 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/servertool 1061 manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/j2re1.7-oracle/bin/servertool to provide /usr/bin/servertool (servertool) in manual mode.

And another called rmiregistry
# update-alternatives --list rmiregistry
/usr/lib/jvm/j2re1.6-oracle/bin/rmiregistry
/usr/lib/jvm/j2re1.7-oracle/bin/rmiregistry
/usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmiregistry
root@debian:/home/craig# update-alternatives --config rmiregistry
There are 3 choices for the alternative rmiregistry (providing /usr/bin/rmiregistry).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmiregistry 1061 auto mode
1 /usr/lib/jvm/j2re1.6-oracle/bin/rmiregistry 314 manual mode
2 /usr/lib/jvm/j2re1.7-oracle/bin/rmiregistry 316 manual mode
3 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmiregistry 1061 manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/j2re1.7-oracle/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in manual mode.

And yet another called rmid
# update-alternatives --list rmid
/usr/lib/jvm/j2re1.6-oracle/bin/rmid
/usr/lib/jvm/j2re1.7-oracle/bin/rmid
/usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmid
root@debian:/home/craig# update-alternatives --config rmid
There are 3 choices for the alternative rmid (providing /usr/bin/rmid).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmid 1061 auto mode
1 /usr/lib/jvm/j2re1.6-oracle/bin/rmid 314 manual mode
2 /usr/lib/jvm/j2re1.7-oracle/bin/rmid 316 manual mode
3 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmid 1061 manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/j2re1.7-oracle/bin/rmid to provide /usr/bin/rmid (rmid) in manual mode.

policytool
# update-alternatives --list policytool
/usr/lib/jvm/j2re1.6-oracle/bin/policytool
/usr/lib/jvm/j2re1.7-oracle/bin/policytool
/usr/lib/jvm/java-6-openjdk-i386/jre/bin/policytool
root@debian:/home/craig# update-alternatives --config policytool
There are 3 choices for the alternative policytool (providing /usr/bin/policytool).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/policytool 1061 auto mode
1 /usr/lib/jvm/j2re1.6-oracle/bin/policytool 314 manual mode
2 /usr/lib/jvm/j2re1.7-oracle/bin/policytool 316 manual mode
3 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/policytool 1061 manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/j2re1.7-oracle/bin/policytool to provide /usr/bin/policytool (policytool) in manual mode.

There are a few more:

Code: Select all

$ ls -l /etc/alternatives/
total 28
lrwxrwxrwx 1 root root  21 May  9 12:43 aclocal -> /usr/bin/aclocal-1.11
lrwxrwxrwx 1 root root  37 May  9 12:43 aclocal.1.gz -> /usr/share/man/man1/aclocal-1.11.1.gz
lrwxrwxrwx 1 root root  20 Apr  2 12:58 animate -> /usr/bin/animate.im6
lrwxrwxrwx 1 root root  36 Apr  2 12:58 animate.1.gz -> /usr/share/man/man1/animate.im6.1.gz
lrwxrwxrwx 1 root root  24 May  5 13:52 aptitude -> /usr/bin/aptitude-curses
lrwxrwxrwx 1 root root  40 May  5 13:52 aptitude.8.gz -> /usr/share/man/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.cs.8.gz -> /usr/share/man/cs/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.de.8.gz -> /usr/share/man/de/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.es.8.gz -> /usr/share/man/es/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.fi.8.gz -> /usr/share/man/fi/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.fr.8.gz -> /usr/share/man/fr/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.gl.8.gz -> /usr/share/man/gl/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.it.8.gz -> /usr/share/man/it/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.ja.8.gz -> /usr/share/man/ja/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  43 May  5 13:52 aptitude.pl.8.gz -> /usr/share/man/pl/man8/aptitude-curses.8.gz
lrwxrwxrwx 1 root root  22 May  9 12:43 automake -> /usr/bin/automake-1.11
lrwxrwxrwx 1 root root  38 May  9 12:43 automake.1.gz -> /usr/share/man/man1/automake-1.11.1.gz
lrwxrwxrwx 1 root root  13 Feb 11  2011 awk -> /usr/bin/gawk
lrwxrwxrwx 1 root root  29 Feb 11  2011 awk.1.gz -> /usr/share/man/man1/gawk.1.gz
lrwxrwxrwx 1 root root  38 Apr  4 00:13 builtins.7.gz -> /usr/share/man/man7/bash-builtins.7.gz
lrwxrwxrwx 1 root root  12 Feb 11  2011 c++ -> /usr/bin/g++
lrwxrwxrwx 1 root root  16 Feb 11  2011 c89 -> /usr/bin/c89-gcc
lrwxrwxrwx 1 root root  32 Feb 11  2011 c89.1.gz -> /usr/share/man/man1/c89-gcc.1.gz
lrwxrwxrwx 1 root root  16 Feb 11  2011 c99 -> /usr/bin/c99-gcc
lrwxrwxrwx 1 root root  32 Feb 11  2011 c99.1.gz -> /usr/share/man/man1/c99-gcc.1.gz
lrwxrwxrwx 1 root root  12 Feb 11  2011 cc -> /usr/bin/gcc
lrwxrwxrwx 1 root root  48 May 11 06:11 chromium-javaplugin.so -> /usr/lib/jvm/j2re1.7-oracle/lib/i386/libnpjp2.so
lrwxrwxrwx 1 root root  20 Apr  2 12:58 compare -> /usr/bin/compare.im6
lrwxrwxrwx 1 root root  36 Apr  2 12:58 compare.1.gz -> /usr/share/man/man1/compare.im6.1.gz
lrwxrwxrwx 1 root root  22 Apr  2 12:58 composite -> /usr/bin/composite.im6
lrwxrwxrwx 1 root root  38 Apr  2 12:58 composite.1.gz -> /usr/share/man/man1/composite.im6.1.gz
lrwxrwxrwx 1 root root  20 Apr  2 12:58 conjure -> /usr/bin/conjure.im6
lrwxrwxrwx 1 root root  36 Apr  2 12:58 conjure.1.gz -> /usr/share/man/man1/conjure.im6.1.gz
lrwxrwxrwx 1 root root  44 May 11 06:11 ControlPanel -> /usr/lib/jvm/j2re1.7-oracle/bin/ControlPanel
lrwxrwxrwx 1 root root  20 Apr  2 12:58 convert -> /usr/bin/convert.im6
lrwxrwxrwx 1 root root  36 Apr  2 12:58 convert.1.gz -> /usr/share/man/man1/convert.im6.1.gz
lrwxrwxrwx 1 root root  12 Jul 10  2011 cpp -> /usr/bin/cpp
lrwxrwxrwx 1 root root  23 Feb  4 15:12 csscapture -> /usr/bin/csscapture_py2
lrwxrwxrwx 1 root root  39 Feb  4 15:12 csscapture.1.gz -> /usr/share/man/man1/csscapture_py2.1.gz
lrwxrwxrwx 1 root root  23 Feb  4 15:12 csscombine -> /usr/bin/csscombine_py2
lrwxrwxrwx 1 root root  39 Feb  4 15:12 csscombine.1.gz -> /usr/share/man/man1/csscombine_py2.1.gz
lrwxrwxrwx 1 root root  21 Feb  4 15:12 cssparse -> /usr/bin/cssparse_py2
lrwxrwxrwx 1 root root  37 Feb  4 15:12 cssparse.1.gz -> /usr/share/man/man1/cssparse_py2.1.gz
lrwxrwxrwx 1 root root  53 Feb 10  2011 desktop-background -> /usr/share/images/desktop-base/spacefun-wallpaper.svg
lrwxrwxrwx 1 root root  48 Feb 10  2011 desktop-grub -> /usr/share/images/desktop-base/spacefun-grub.png
lrwxrwxrwx 1 root root  50 Feb 10  2011 desktop-splash -> /usr/share/images/desktop-base/spacefun-splash.svg
lrwxrwxrwx 1 root root  20 Apr  2 12:58 display -> /usr/bin/display.im6
lrwxrwxrwx 1 root root  36 Apr  2 12:58 display.1.gz -> /usr/share/man/man1/display.im6.1.gz
lrwxrwxrwx 1 root root   9 Mar  4 01:16 editor -> /bin/nano
lrwxrwxrwx 1 root root  29 Mar  4 01:16 editor.1.gz -> /usr/share/man/man1/nano.1.gz
lrwxrwxrwx 1 root root  15 Apr 13  2011 erb -> /usr/bin/erb1.8
lrwxrwxrwx 1 root root  31 Apr 13  2011 erb.1.gz -> /usr/share/man/man1/erb1.8.1.gz
lrwxrwxrwx 1 root root  35 Apr 22 22:15 faked.1.gz -> /usr/share/man/man1/faked-sysv.1.gz
lrwxrwxrwx 1 root root  38 Apr 22 22:15 faked.es.1.gz -> /usr/share/man/es/man1/faked-sysv.1.gz
lrwxrwxrwx 1 root root  38 Apr 22 22:15 faked.fr.1.gz -> /usr/share/man/fr/man1/faked-sysv.1.gz
lrwxrwxrwx 1 root root  38 Apr 22 22:15 faked.sv.1.gz -> /usr/share/man/sv/man1/faked-sysv.1.gz
lrwxrwxrwx 1 root root  22 Apr 22 22:15 fakeroot -> /usr/bin/fakeroot-sysv
lrwxrwxrwx 1 root root  38 Apr 22 22:15 fakeroot.1.gz -> /usr/share/man/man1/fakeroot-sysv.1.gz
lrwxrwxrwx 1 root root  41 Apr 22 22:15 fakeroot.es.1.gz -> /usr/share/man/es/man1/fakeroot-sysv.1.gz
lrwxrwxrwx 1 root root  41 Apr 22 22:15 fakeroot.fr.1.gz -> /usr/share/man/fr/man1/fakeroot-sysv.1.gz
lrwxrwxrwx 1 root root  41 Apr 22 22:15 fakeroot.sv.1.gz -> /usr/share/man/sv/man1/fakeroot-sysv.1.gz
lrwxrwxrwx 1 root root  46 Feb 11  2011 flash-mozilla.so -> /usr/lib/flashplayer-mozilla/libflashplayer.so
lrwxrwxrwx 1 root root  17 Feb 10  2011 from -> /usr/bin/bsd-from
lrwxrwxrwx 1 root root  33 Feb 10  2011 from.1.gz -> /usr/share/man/man1/bsd-from.1.gz
lrwxrwxrwx 1 root root  19 Feb 10  2011 ftp -> /usr/bin/netkit-ftp
lrwxrwxrwx 1 root root  35 Feb 10  2011 ftp.1.gz -> /usr/share/man/man1/netkit-ftp.1.gz
lrwxrwxrwx 1 root root  20 Feb 10  2011 gconftool -> /usr/bin/gconftool-2
lrwxrwxrwx 1 root root  36 Feb 10  2011 gconftool.1.gz -> /usr/share/man/man1/gconftool-2.1.gz
lrwxrwxrwx 1 root root  16 Mar 26 16:48 gnome-text-editor -> /usr/bin/leafpad
lrwxrwxrwx 1 root root  32 Mar 26 16:48 gnome-text-editor.1.gz -> /usr/share/man/man1/leafpad.1.gz
lrwxrwxrwx 1 root root  22 May 14  2011 gnome-www-browser -> /usr/bin/google-chrome
lrwxrwxrwx 1 root root  48 May 11 06:11 iceweasel-javaplugin.so -> /usr/lib/jvm/j2re1.7-oracle/lib/i386/libnpjp2.so
lrwxrwxrwx 1 root root  21 Apr  2 12:58 identify -> /usr/bin/identify.im6
lrwxrwxrwx 1 root root  37 Apr  2 12:58 identify.1.gz -> /usr/share/man/man1/identify.im6.1.gz
lrwxrwxrwx 1 root root  19 Apr  2 12:58 import -> /usr/bin/import.im6
lrwxrwxrwx 1 root root  35 Apr  2 12:58 import.1.gz -> /usr/share/man/man1/import.im6.1.gz
lrwxrwxrwx 1 root root  13 Feb 10  2011 infobrowser -> /usr/bin/info
lrwxrwxrwx 1 root root  29 Feb 10  2011 infobrowser.1.gz -> /usr/share/man/man1/info.1.gz
lrwxrwxrwx 1 root root  15 Apr 13  2011 irb -> /usr/bin/irb1.8
lrwxrwxrwx 1 root root  31 Apr 13  2011 irb.1.gz -> /usr/share/man/man1/irb1.8.1.gz
lrwxrwxrwx 1 root root  55 Nov 11  2011 itweb-settings -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/itweb-settings
lrwxrwxrwx 1 root root  65 Nov 11  2011 itweb-settings.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/itweb-settings.1.gz                                                                                                                          
lrwxrwxrwx 1 root root  36 May 11 06:13 java -> /usr/lib/jvm/j2re1.7-oracle/bin/java
lrwxrwxrwx 1 root root  46 May 11 06:13 java.1.gz -> /usr/lib/jvm/j2re1.7-oracle/man/man1/java.1.gz
lrwxrwxrwx 1 root root  38 May 11 06:13 javaws -> /usr/lib/jvm/j2re1.7-oracle/bin/javaws
lrwxrwxrwx 1 root root  48 May 11 06:13 javaws.1.gz -> /usr/lib/jvm/j2re1.7-oracle/man/man1/javaws.1.gz
lrwxrwxrwx 1 root root  37 May 11 06:13 jexec -> /usr/lib/jvm/j2re1.7-oracle/lib/jexec
lrwxrwxrwx 1 root root  48 Mar  4 01:48 keytool -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/keytool
lrwxrwxrwx 1 root root  58 Mar  4 01:48 keytool.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/keytool.1.gz
lrwxrwxrwx 1 root root   9 Feb 14  2011 ksh -> /bin/zsh4
lrwxrwxrwx 1 root root  28 Feb 14  2011 ksh.1.gz -> /usr/share/man/man1/zsh.1.gz
lrwxrwxrwx 1 root root  15 May 19 18:58 lft -> /usr/bin/lft.db
lrwxrwxrwx 1 root root  31 May 19 18:58 lft.1.gz -> /usr/share/man/man1/lft.db.1.gz
lrwxrwxrwx 1 root root  31 Feb 10  2011 libblas.so.3gf -> /usr/lib/libblas/libblas.so.3gf
lrwxrwxrwx 1 root root  32 Feb 10  2011 liblapack.so.3gf -> /usr/lib/lapack/liblapack.so.3gf
lrwxrwxrwx 1 root root  16 Feb 10  2011 locate -> /usr/bin/mlocate
lrwxrwxrwx 1 root root  32 Feb 10  2011 locate.1.gz -> /usr/share/man/man1/mlocate.1.gz
lrwxrwxrwx 1 root root  21 Mar 26 08:53 lrelease -> /usr/bin/lrelease-qt4
lrwxrwxrwx 1 root root  37 Mar 26 08:53 lrelease.1.gz -> /usr/share/man/man1/lrelease-qt4.1.gz
lrwxrwxrwx 1 root root  30 Sep 20  2011 lucli -> /usr/lib/liblucene2-java/lucli
lrwxrwxrwx 1 root root  35 Sep 20  2011 lucli.1.gz -> /usr/lib/liblucene2-java/lucli.1.gz
lrwxrwxrwx 1 root root  20 Mar 26 08:53 lupdate -> /usr/bin/lupdate-qt4
lrwxrwxrwx 1 root root  36 Mar 26 08:53 lupdate.1.gz -> /usr/share/man/man1/lupdate-qt4.1.gz
lrwxrwxrwx 1 root root  13 Jan  9 15:08 lzcat -> /usr/bin/lzmp
lrwxrwxrwx 1 root root  29 Jan  9 15:08 lzcat.1.gz -> /usr/share/man/man1/lzmp.1.gz
lrwxrwxrwx 1 root root  13 Jan  9 15:08 lzma -> /usr/bin/lzmp
lrwxrwxrwx 1 root root  29 Jan  9 15:08 lzma.1.gz -> /usr/share/man/man1/lzmp.1.gz
lrwxrwxrwx 1 root root  18 Feb 10  2011 mail -> /usr/bin/bsd-mailx
lrwxrwxrwx 1 root root  18 Feb 10  2011 Mail -> /usr/bin/bsd-mailx
lrwxrwxrwx 1 root root  34 Feb 10  2011 mail.1.gz -> /usr/share/man/man1/bsd-mailx.1.gz
lrwxrwxrwx 1 root root  34 Feb 10  2011 Mail.1.gz -> /usr/share/man/man1/bsd-mailx.1.gz
lrwxrwxrwx 1 root root  18 Feb 10  2011 mailx -> /usr/bin/bsd-mailx
lrwxrwxrwx 1 root root  34 Feb 10  2011 mailx.1.gz -> /usr/share/man/man1/bsd-mailx.1.gz
lrwxrwxrwx 1 root root  16 Mar 26 08:53 moc -> /usr/bin/moc-qt4
lrwxrwxrwx 1 root root  32 Mar 26 08:53 moc.1.gz -> /usr/share/man/man1/moc-qt4.1.gz
lrwxrwxrwx 1 root root  20 Apr  2 12:58 mogrify -> /usr/bin/mogrify.im6
lrwxrwxrwx 1 root root  36 Apr  2 12:58 mogrify.1.gz -> /usr/share/man/man1/mogrify.im6.1.gz
lrwxrwxrwx 1 root root  20 Apr  2 12:58 montage -> /usr/bin/montage.im6
lrwxrwxrwx 1 root root  36 Apr  2 12:58 montage.1.gz -> /usr/share/man/man1/montage.im6.1.gz
lrwxrwxrwx 1 root root  48 May 11 06:13 mozilla-javaplugin.so -> /usr/lib/jvm/j2re1.7-oracle/lib/i386/libnpjp2.so
lrwxrwxrwx 1 root root  17 Dec  3 15:56 mplayer -> /usr/bin/mplayer1
lrwxrwxrwx 1 root root  29 Feb 11  2011 mplayer-skin -> /usr/share/mplayer/skins/blue
lrwxrwxrwx 1 root root  11 Feb 10  2011 mt -> /bin/mt-gnu
lrwxrwxrwx 1 root root  31 Feb 10  2011 mt.1.gz -> /usr/share/man/man1/mt-gnu.1.gz
lrwxrwxrwx 1 root root  17 Feb 10  2011 mutt -> /usr/bin/mutt-org
lrwxrwxrwx 1 root root  13 Feb 11  2011 nawk -> /usr/bin/gawk
lrwxrwxrwx 1 root root  29 Feb 11  2011 nawk.1.gz -> /usr/share/man/man1/gawk.1.gz
lrwxrwxrwx 1 root root  19 Mar  5  2011 nc -> /bin/nc.traditional
lrwxrwxrwx 1 root root  39 Mar  5  2011 nc.1.gz -> /usr/share/man/man1/nc.traditional.1.gz
lrwxrwxrwx 1 root root  19 Mar  5  2011 netcat -> /bin/nc.traditional
lrwxrwxrwx 1 root root  39 Mar  5  2011 netcat.1.gz -> /usr/share/man/man1/nc.traditional.1.gz
lrwxrwxrwx 1 root root  41 May 20 16:47 nethack -> /usr/lib/games/nethack/nethack-x11-tty.sh
lrwxrwxrwx 1 root root  45 Mar  4 01:48 orbd -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/orbd
lrwxrwxrwx 1 root root  55 Mar  4 01:48 orbd.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/orbd.1.gz
lrwxrwxrwx 1 root root  48 Mar  4 01:48 pack200 -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/pack200
lrwxrwxrwx 1 root root  58 Mar  4 01:48 pack200.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/pack200.1.gz
lrwxrwxrwx 1 root root   9 Feb 10  2011 pager -> /bin/less
lrwxrwxrwx 1 root root  29 Feb 10  2011 pager.1.gz -> /usr/share/man/man1/less.1.gz
lrwxrwxrwx 1 root root   9 Feb 10  2011 pico -> /bin/nano
lrwxrwxrwx 1 root root  29 Feb 10  2011 pico.1.gz -> /usr/share/man/man1/nano.1.gz
lrwxrwxrwx 1 root root  23 Feb 15  2011 pinentry -> /usr/bin/pinentry-gtk-2
lrwxrwxrwx 1 root root  39 Feb 15  2011 pinentry.1.gz -> /usr/share/man/man1/pinentry-gtk-2.1.gz
lrwxrwxrwx 1 root root  23 Feb 15  2011 pinentry-x11 -> /usr/bin/pinentry-gtk-2
lrwxrwxrwx 1 root root  39 Feb 15  2011 pinentry-x11.1.gz -> /usr/share/man/man1/pinentry-gtk-2.1.gz
lrwxrwxrwx 1 root root  51 Mar  4 01:48 policytool -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/policytool
lrwxrwxrwx 1 root root  61 Mar  4 01:48 policytool.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/policytool.1.gz
lrwxrwxrwx 1 root root  18 Mar 26 08:53 qmake -> /usr/bin/qmake-qt4
lrwxrwxrwx 1 root root  34 Mar 26 08:53 qmake.1.gz -> /usr/share/man/man1/qmake-qt4.1.gz
lrwxrwxrwx 1 root root  21 Mar 18  2011 qtconfig -> /usr/bin/qtconfig-qt4
lrwxrwxrwx 1 root root  37 Mar 18  2011 qtconfig.1.gz -> /usr/share/man/man1/qtconfig-qt4.1.gz
lrwxrwxrwx 1 root root  16 Apr 13  2011 rdoc -> /usr/bin/rdoc1.8
lrwxrwxrwx 1 root root  32 Apr 13  2011 rdoc.1.gz -> /usr/share/man/man1/rdoc1.8.1.gz
-rw-r--r-- 1 root root 100 Jan 30  2011 README
lrwxrwxrwx 1 root root  16 Feb 10  2011 rename -> /usr/bin/prename
lrwxrwxrwx 1 root root  32 Feb 10  2011 rename.1.gz -> /usr/share/man/man1/prename.1.gz
lrwxrwxrwx 1 root root  14 Apr 13  2011 ri -> /usr/bin/ri1.8
lrwxrwxrwx 1 root root  30 Apr 13  2011 ri.1.gz -> /usr/share/man/man1/ri1.8.1.gz
lrwxrwxrwx 1 root root  45 Mar  4 01:48 rmid -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmid
lrwxrwxrwx 1 root root  55 Mar  4 01:48 rmid.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/rmid.1.gz
lrwxrwxrwx 1 root root  52 Mar  4 01:48 rmiregistry -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/rmiregistry
lrwxrwxrwx 1 root root  62 Mar  4 01:48 rmiregistry.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/rmiregistry.1.gz
lrwxrwxrwx 1 root root  17 Feb 10  2011 rmt -> /usr/sbin/rmt-tar
lrwxrwxrwx 1 root root  32 Feb 10  2011 rmt.8.gz -> /usr/share/man/man8/rmt-tar.8.gz
lrwxrwxrwx 1 root root  16 Apr 13  2011 ruby -> /usr/bin/ruby1.8
lrwxrwxrwx 1 root root  32 Apr 13  2011 ruby.1.gz -> /usr/share/man/man1/ruby1.8.1.gz
lrwxrwxrwx 1 root root   9 Feb 14  2011 rzsh -> /bin/zsh4
lrwxrwxrwx 1 root root  28 Feb 14  2011 rzsh.1.gz -> /usr/share/man/man1/zsh.1.gz
lrwxrwxrwx 1 root root  51 Mar  4 01:48 servertool -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/servertool
lrwxrwxrwx 1 root root  61 Mar  4 01:48 servertool.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/servertool.1.gz
lrwxrwxrwx 1 root root  19 Apr  2 12:58 stream -> /usr/bin/stream.im6
lrwxrwxrwx 1 root root  35 Apr  2 12:58 stream.1.gz -> /usr/share/man/man1/stream.im6.1.gz
lrwxrwxrwx 1 root root  17 May 20  2011 tclsh -> /usr/bin/tclsh8.5
lrwxrwxrwx 1 root root  33 May 20  2011 tclsh.1 -> /usr/share/man/man1/tclsh8.5.1.gz
lrwxrwxrwx 1 root root  26 May 19 18:58 tcptraceroute -> /usr/sbin/tcptraceroute.db
lrwxrwxrwx 1 root root  41 May 19 18:58 tcptraceroute.8.gz -> /usr/share/man/man8/tcptraceroute.db.8.gz
lrwxrwxrwx 1 root root  18 Apr 13  2011 testrb -> /usr/bin/testrb1.8
lrwxrwxrwx 1 root root  34 Apr 13  2011 testrb.1.gz -> /usr/share/man/man1/testrb1.8.1.gz
lrwxrwxrwx 1 root root  50 Mar  4 01:48 tnameserv -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/tnameserv
lrwxrwxrwx 1 root root  60 Mar  4 01:48 tnameserv.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/tnameserv.1.gz
lrwxrwxrwx 1 root root  22 May 19 18:58 traceproto -> /usr/bin/traceproto.db
lrwxrwxrwx 1 root root  38 May 19 18:58 traceproto.1.gz -> /usr/share/man/man1/traceproto.db.1.gz
lrwxrwxrwx 1 root root  22 May 19 18:58 traceroute -> /usr/bin/traceroute.db
lrwxrwxrwx 1 root root  38 May 19 18:58 traceroute.1.gz -> /usr/share/man/man1/traceroute.db.1.gz
lrwxrwxrwx 1 root root  23 May 19 18:58 traceroute6 -> /usr/bin/traceroute6.db
lrwxrwxrwx 1 root root  39 May 19 18:58 traceroute6.1.gz -> /usr/share/man/man1/traceroute6.db.1.gz
lrwxrwxrwx 1 root root  22 May 19 18:58 traceroute.sbin -> /usr/bin/traceroute.db
lrwxrwxrwx 1 root root  16 Mar 26 08:53 uic -> /usr/bin/uic-qt4
lrwxrwxrwx 1 root root  13 Jan  9 15:08 unlzma -> /usr/bin/lzmp
lrwxrwxrwx 1 root root  29 Jan  9 15:08 unlzma.1.gz -> /usr/share/man/man1/lzmp.1.gz
lrwxrwxrwx 1 root root  50 Mar  4 01:48 unpack200 -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/unpack200
lrwxrwxrwx 1 root root  60 Mar  4 01:48 unpack200.1.gz -> /usr/lib/jvm/java-6-openjdk-i386/jre/man/man1/unpack200.1.gz
lrwxrwxrwx 1 root root  22 Feb 11  2011 unrar -> /usr/bin/unrar-nonfree
lrwxrwxrwx 1 root root  38 Feb 11  2011 unrar.1.gz -> /usr/share/man/man1/unrar-nonfree.1.gz
lrwxrwxrwx 1 root root  25 Feb 10  2011 updatedb -> /usr/bin/updatedb.mlocate
lrwxrwxrwx 1 root root   9 Feb 14  2011 usr.bin.ksh -> /bin/zsh4
lrwxrwxrwx 1 root root  15 Mar  4 01:16 view -> /usr/bin/mcview
lrwxrwxrwx 1 root root  31 Mar  4 01:16 view.1.gz -> /usr/share/man/man1/mcview.1.gz
lrwxrwxrwx 1 root root  17 Feb 10  2011 w -> /usr/bin/w.procps
lrwxrwxrwx 1 root root  33 Feb 10  2011 w.1.gz -> /usr/share/man/man1/w.procps.1.gz
lrwxrwxrwx 1 root root  18 Feb 10  2011 write -> /usr/bin/bsd-write
lrwxrwxrwx 1 root root  34 Feb 10  2011 write.1.gz -> /usr/share/man/man1/bsd-write.1.gz
lrwxrwxrwx 1 root root  15 Feb 14  2011 www-browser -> /usr/bin/links2
lrwxrwxrwx 1 root root  31 Feb 14  2011 www-browser.1.gz -> /usr/share/man/man1/links2.1.gz
lrwxrwxrwx 1 root root  28 Apr 27 15:22 wx.pth -> /usr/lib/wx/python/wx2.8.pth
lrwxrwxrwx 1 root root  27 Mar 18  2011 x-cursor-theme -> /etc/X11/cursors/core.theme
lrwxrwxrwx 1 root root  24 Apr 12  2011 x-session-manager -> /usr/bin/openbox-session
lrwxrwxrwx 1 root root  40 Apr 12  2011 x-session-manager.1.gz -> /usr/share/man/man1/openbox-session.1.gz
lrwxrwxrwx 1 root root  16 Apr 20  2011 x-terminal-emulator -> /usr/bin/konsole
lrwxrwxrwx 1 root root  16 Mar 18  2011 x-window-manager -> /usr/bin/openbox
lrwxrwxrwx 1 root root  32 Mar 18  2011 x-window-manager.1.gz -> /usr/share/man/man1/openbox.1.gz
lrwxrwxrwx 1 root root  37 Jun 22  2011 x-www-browser -> /home/craig/Downloads/firefox/firefox
lrwxrwxrwx 1 root root   9 Feb 14  2011 zsh -> /bin/zsh4
lrwxrwxrwx 1 root root   9 Feb 14  2011 zsh-usrbin -> /bin/zsh4
I have not taken the time to lookup any of these so I have no clue what they are actually for. I just assume since I have Oracle java 7 set as my Java default any other alternative that is available for it should be the same.
So change them at your own risk.
äxl

Re: Howto install Oracle's Java on LMDE/Debian

Post by äxl »

Or just remove the standard installation if you don't want to use it at all. ;)
craigevil

Re: Howto install Oracle's Java on LMDE/Debian

Post by craigevil »

removing openjdk6 installs openjdk7.along with all of the silly Gnome depends it pulls in.

sent from my Kindle Fire using Tapatalk2
roger64
Level 4
Level 4
Posts: 279
Joined: Wed Jun 01, 2011 5:48 am

Re: Howto install Oracle's Java on LMDE/Debian

Post by roger64 »

craigevil wrote:found another alternative that uses Java called keytool. .../...
There is a very handy graphic package to take care of these alternatives: galternatives

See for example, for keytool.
Image
craigevil

Re: Howto install Oracle's Java on LMDE/Debian

Post by craigevil »

roger64 wrote:
craigevil wrote:found another alternative that uses Java called keytool. .../...
There is a very handy graphic package to take care of these alternatives: galternatives

See for example, for keytool.
Image
Yes I have kalternatives - graphical alternatives system configuration tool , installed it shows up in SystemSettings.
äxl

Re: Howto install Oracle's Java on LMDE/Debian

Post by äxl »

craigevil wrote:removing openjdk6 installs openjdk7.along with all of the silly Gnome depends it pulls in.
Really? I had it removed with only Sun's 6 build once.

Code: Select all

./apt-history.sh remove | grep -E 2012-05-04
2012-05-04 19:44:17 remove libreoffice 1:3.4.5-5 <none>
2012-05-04 19:44:18 remove libreoffice-filter-mobiledev 1:3.4.5-5 <none>
2012-05-04 19:44:18 remove libreoffice-report-builder-bin 1:3.4.5-5 <none>
2012-05-04 19:44:18 remove libreoffice-base 1:3.4.5-5 <none>
2012-05-04 19:44:18 remove openjdk-7-jre 7~u3-2.1-3 <none>
2012-05-04 19:44:18 remove java-package 0.50 <none>
2012-05-04 19:44:19 remove debhelper 9.20120115 <none>
2012-05-04 19:44:19 remove html2text 1.3.2a-15 <none>
2012-05-04 19:44:20 remove po-debconf 1.0.16+nmu2 <none>
2012-05-04 19:44:20 remove intltool-debian 0.35.0+20060710.1 <none>
2012-05-04 19:44:20 remove libatk-wrapper-java-jni 0.30.4-1 <none>
2012-05-04 19:44:20 remove libatk-wrapper-java 0.30.4-1 <none>
2012-05-04 19:44:21 remove ca-certificates-java 20120225 <none>
2012-05-04 19:44:21 remove openjdk-7-jre-headless 7~u3-2.1-3 <none>
2012-05-04 19:44:21 remove openjdk-7-jre-lib 7~u3-2.1-3 <none>
2012-05-04 19:44:21 remove tzdata-java 2012b-1 <none>

Code: Select all

/apt-history.sh install | grep -E 2012-05-04
2012-05-04 18:50:56 install oracle-j2re1.6 <none> 1.6.0+update32
mintybits

Re: Howto install Oracle's Java on LMDE/Debian

Post by mintybits »

I find the alternatives thing confusing so in the end I just
installed the latest oracle java jdk to /opt
added links for java, jar, javaws etc to /usr/local/bin and the mozilla plugin
removed openjdk stuff using synaptic
craigevil

Re: Howto install Oracle's Java on LMDE/Debian

Post by craigevil »

Can't remove openjdk6 on Debian without openjdk7 getting installed.

Code: Select all

$ apt-get remove openjdk-6-jre -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gcj-4.7-base gcj-4.7-jre gcj-4.7-jre-headless gcj-jre gcj-jre-headless gnome-mime-data gvfs gvfs-common gvfs-daemons
  gvfs-libs libavahi-glib1 libbonobo2-0 libbonobo2-common libgcj13 libgcj13-awt libgdu0 libgnome2-0 libgnome2-common
  libgnomevfs2-0 libgnomevfs2-common libidl0 liborbit2 openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib
Suggested packages:
  fastjar gcj-4.7-jdk gcj-jdk gvfs-backends libbonobo2-bin libgcj13-dbg libgnomevfs2-bin fam libnss-mdns sun-java6-fonts
  fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei ttf-indic-fonts
Recommended packages:
  policykit-1-gnome gcj-4.7-jre-lib libgnomevfs2-extra icedtea-7-jre-cacao icedtea-7-jre-jamvm
The following packages will be REMOVED:
  default-jre icedtea-6-plugin icedtea-netx jitsi openjdk-6-jre
The following NEW packages will be installed:
  gcj-4.7-base gcj-4.7-jre gcj-4.7-jre-headless gcj-jre gcj-jre-headless gnome-mime-data gvfs gvfs-common gvfs-daemons
  gvfs-libs libavahi-glib1 libbonobo2-0 libbonobo2-common libgcj13 libgcj13-awt libgdu0 libgnome2-0 libgnome2-common
  libgnomevfs2-0 libgnomevfs2-common libidl0 liborbit2 openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib
0 upgraded, 25 newly installed, 5 to remove and 0 not upgraded.
mintybits

Re: Howto install Oracle's Java on LMDE/Debian

Post by mintybits »

craigevil wrote:Can't remove openjdk6 on Debian without openjdk7 getting installed.
I have been using Ubuntu 12.04 which seems ok. I have just tried Mint 13 and I see exactly what you mean. Removing Open 1.6 causes Open 1.7 to be installed, and removing 1.7 causes 1.5 to be installed!!! It's like a recurring nightmare. :P

Must be a mistake.

A work-around is to install Java in /opt (or somewhere) and put symblic links to it's bin files in /usr/local/bin. These links will be found first. :)
craigevil

Re: Howto install Oracle's Java on LMDE/Debian

Post by craigevil »

mintybits wrote:
craigevil wrote:Can't remove openjdk6 on Debian without openjdk7 getting installed.
I have been using Ubuntu 12.04 which seems ok. I have just tried Mint 13 and I see exactly what you mean. Removing Open 1.6 causes Open 1.7 to be installed, and removing 1.7 causes 1.5 to be installed!!! It's like a recurring nightmare. :P

Must be a mistake.

A work-around is to install Java in /opt (or somewhere) and put symblic links to it's bin files in /usr/local/bin. These links will be found first. :)
I have Oracle Java 7 installed and working. just too bad that I can't remove Openjdk.

Firefox about:plugins

Code: Select all

Java(TM) Plug-in 1.7.0_04

    File: /usr/lib/jvm/j2re1.7-oracle/lib/i386/libnpjp2.so
$ 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)
äxl

Re: Howto install Oracle's Java on LMDE/Debian

Post by äxl »

I guess I can remove whatever I want because I still have Gnome and Cinnamon installed (although not using them).
Depends on what is more important for you, craigevil. "Half of Gnome" or an insecure OpenJDK. ;)
From stability and performance point of view I can't notice a difference between Oracle and Open.
mintybits

Re: Howto install Oracle's Java on LMDE/Debian

Post by mintybits »

I have had problems with OpenJDK.
Oracle Java definitely works and is always up to date, by definition. Both are free. So why choose anything else?

I confess I am not sure what the point of OpenJDK is. I am aware of the open-source, crusading thing that some pursue, but in terms of having Java on my linux PC I find OpenJDK an irritating distraction. The lack of choice in Mint's Synaptic is a little concerning.
äxl

Re: Howto install Oracle's Java on LMDE/Debian

Post by äxl »

For all alternatives look at the bottom of this page:
http://wiki.debian.org/JavaPackage

Code: Select all

sudo update-java-alternatives -l
sudo update-java-alternatives -s j2re1.7-oracle
mintybits, I don't want to teach you but maybe you could give this a read: http://www.gnu.org/philosophy/free-sw.html
There are also some "performance crusaders". ;) I think Debian is still happy to call themselves GNU.
http://www.debian.org/intro/about
http://www.gnu.org/philosophy/open-sour ... point.html
Locked

Return to “LMDE Archive”