[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#516654: default-jdk: Fails to provide "java" command



On Sun Feb 22 23:28, Axel K. Stammler wrote:
> This package's name sounds as if it would provide the default Debian Java development kit,
> but that's exactly what the package doesn't do. In fact, I find it difficult to use
> "aptitude search java" or anything similar to find out which package to install to be able
> to do

Are you sure it does not? I mean, the default-jdk package it self
doesn't but it depends on a whole bunch of packages which eventually do.

Here I have:

Package: default-jdk
Depends: default-jre (= 1.5-30), java-gcj-compat-dev (>= 1.0.77-4)

Package: default-jre
Depends: default-jre-headless (= 1.5-30), java-gcj-compat (>= 1.0.77-4)

Package: default-jre-headless
Depends: java-common, java-gcj-compat-headless (>= 1.0.77-4)

and then:

$ dpkg -L java-gcj-compat-headless | grep bin/java$
/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/bin/java
/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre/bin/java

which it adds as alternatives for /usr/bin/java (among others) in its
postinst.

So unless something weird has happened, apt-get install default-jdk
should really have left you with a /usr/bin/java....

Can you check for me that you have java-gcj-compat-headless installed,
it contains those files and that /usr/bin/java and
/etc/alternatives/java exist and look sane? the output of
update-alternatives --list java would also be useful.

Matt

-- 
Matthew Johnson

Attachment: signature.asc
Description: Digital signature


Reply to: