Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-12-2012, 09:00 AM   #1
LQ Newbie
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Oracle Java installed but not "recognized" by dpkg?


I am running on a Debian system
Linux Wobbegong 3.2.0-2-amd64 #1 SMP Tue Mar 20 18:36:37 UTC 2012 x86_64 GNU/Linux
everything actually works (even Oracle Java)
java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
HOWEVER, when I try to install nixnote (an evernote clone) as a amd64 deb package I get the following "error"

dpkg -i nixnote-1.2_amd64.deb 
(Lese Datenbank ... 185641 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Ersetzen von nixnote 1.2 (durch nixnote-1.2_amd64.deb) ...
Ersatz für nixnote wird entpackt ...
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von nixnote:
 nixnote hängt ab von openjdk-6-jre | openjdk-6-jdk | sun-java6-jdk | sun-java6-jre | java6-sdk | java6-runtime | default-jre; aber:
  Paket openjdk-6-jre:amd64 ist nicht installiert.
  Paket openjdk-6-jdk ist nicht installiert.
  Paket sun-java6-jdk ist nicht installiert.
  Paket sun-java6-jre ist nicht installiert.
  Paket java6-sdk ist nicht installiert.
  Paket java6-runtime ist nicht installiert.
  Paket openjdk-6-jre:amd64, das java6-runtime bereitstellt, ist nicht installiert.
  Paket default-jre ist nicht installiert.
dpkg: Fehler beim Bearbeiten von nixnote (--install):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für man-db werden verarbeitet ...
Trigger für desktop-file-utils werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
Somehow dpkg or apt or whatever does not recognize that java is actually installed (sorry it is written in German but the dpkg can not find sun-java6-jre)?

I had the same error with jre 6.31 - so I gave it a try to update to jre 7 but the error remained the same.

I think I just miss something small to get the thing working (do I need to set some variables or softlink or package?).

Therefore I would really appreciate if you could help me out here.

Many thanks.

Old 04-12-2012, 01:31 PM   #2
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
How are you installing Oracle's java?

Try these commands and make sure both point to Oracle's Java
update-alternatives --config java
update-alternatives --config javac
Old 04-13-2012, 05:09 AM   #3
LQ Newbie
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I installed from source using java-package to create corresponding deb-file (which flawlessly installed)

update-alternatives --config java
Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche /usr/bin/java bereitstellen).

  Auswahl      Pfad                                  Priorität Status
  0            /usr/bin/gij-4.6                       1046      Auto-Modus
  1            /usr/bin/gij-4.6                       1046      manueller Modus
* 2            /usr/lib/jvm/j2re1.7-oracle/bin/java   316       manueller Modus

update-alternatives --config javac
update-alternatives: Fehler: Keine Alternativen für javac.
What is javac respectively where is it located??? Do I really need the compiler???

Last edited by cpb; 04-13-2012 at 05:11 AM.


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
"dpkg error in --configure" in most all (508) programs after "apt-get dist-upgrade" fluffymuffins Debian 3 08-09-2010 04:47 AM
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 04:19 PM
E:dpkg was interrupted,you must manually run"dpkg --configure -a" to correct problem loplop4 Debian 5 09-29-2008 12:11 PM
Feeding the output of "diff" or "cat" command to dpkg --purge kushalkoolwal Debian 9 06-19-2008 08:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration