LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hello,

I am running on a Debian system
Code:
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)
Code:
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"

Code:
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:
 nixnote
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.

Regards,
Chris
 
Old 04-12-2012, 12:31 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

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

Try these commands and make sure both point to Oracle's Java
Code:
update-alternatives --config java
update-alternatives --config javac
 
Old 04-13-2012, 04:09 AM   #3
cpb
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)

Code:
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
BUT

Code:
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 04:11 AM.
 
  


Reply



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 03:47 AM
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 03:19 PM
E:dpkg was interrupted,you must manually run"dpkg --configure -a" to correct problem loplop4 Debian 5 09-29-2008 11:11 AM
Feeding the output of "diff" or "cat" command to dpkg --purge kushalkoolwal Debian 9 06-19-2008 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 PM.

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