cant update java alternatives in ubuntu 9.10

Bug #533124 reported by kal
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: openjdk-6-jre

Can i have a fix for this please. when i try to update java alternatives, i get the following errors.

update-java-alternatives -s java-6-openjdk
update-alternatives: error: no alternatives for appletviewer.
update-alternatives: error: no alternatives for apt.
update-alternatives: error: no alternatives for extcheck.
update-alternatives: error: no alternatives for HtmlConverter.
update-alternatives: error: no alternatives for idlj.
update-alternatives: error: no alternatives for jar.
update-alternatives: error: no alternatives for jarsigner.
update-alternatives: error: no alternatives for javac.
update-alternatives: error: no alternatives for javadoc.
update-alternatives: error: no alternatives for javah.
update-alternatives: error: no alternatives for javap.
update-alternatives: error: no alternatives for java-rmi.cgi.
update-alternatives: error: no alternatives for jconsole.
update-alternatives: error: no alternatives for jdb.
update-alternatives: error: no alternatives for jhat.
update-alternatives: error: no alternatives for jinfo.
update-alternatives: error: no alternatives for jmap.
update-alternatives: error: no alternatives for jps.
update-alternatives: error: no alternatives for jrunscript.
update-alternatives: error: no alternatives for jsadebugd.
update-alternatives: error: no alternatives for jstack.
update-alternatives: error: no alternatives for jstat.
update-alternatives: error: no alternatives for jstatd.
update-alternatives: error: no alternatives for native2ascii.
update-alternatives: error: no alternatives for rmic.
update-alternatives: error: no alternatives for schemagen.
update-alternatives: error: no alternatives for serialver.
update-alternatives: error: no alternatives for wsgen.
update-alternatives: error: no alternatives for wsimport.
update-alternatives: error: no alternatives for xjc.
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/appletviewer
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/apt
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/extcheck
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/idlj
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jarsigner
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jar
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/javac
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/javadoc
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/javah
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/javap
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jconsole
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jdb
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jhat
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jinfo
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jmap
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jps
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jrunscript
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jsadebugd
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jstack
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jstatd
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/jstat
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/native2ascii
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/rmic
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/schemagen
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/serialver
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/wsgen
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/wsimport
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-openjdk/bin/xjc

Revision history for this message
Matthias Klose (doko) wrote :

which packages are installed?

dpkg -l *gcj* *sun-java* *openjdk*

to avoid the errors with the jdk binaries, use the --jre option

Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Revision history for this message
Tom Davidson (tomdavidson) wrote :

Same symptoms here. what is ment by the --jre option?

tom@sofia:~$ sudo dpkg -l *gcj* *sun-java* *openjdk*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===========================-===========================-======================================================================
un gcj-jre <none> (no description available)
un ia32-sun-java6-bin <none> (no description available)
un ia32-sun-java6-plugin <none> (no description available)
un icedtea-gcjwebplugin <none> (no description available)
un java-gcj-compat <none> (no description available)
ii openjdk-6-jre 6b16-1.6.1-3ubuntu1 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-6-jre-headless 6b16-1.6.1-3ubuntu1 OpenJDK Java runtime, using Hotspot JIT (headless)
ii openjdk-6-jre-lib 6b16-1.6.1-3ubuntu1 OpenJDK Java runtime (architecture independent libraries)
un openoffice.org-gcj <none> (no description available)
un sun-java5-jre <none> (no description available)
ii sun-java6-bin 6-15-1 Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files
un sun-java6-demo <none> (no description available)
un sun-java6-doc <none> (no description available)
ii sun-java6-fonts 6-15-1 Lucida TrueType fonts (from the Sun JRE)
rc sun-java6-jdk 6-15-1 Sun Java(TM) Development Kit (JDK) 6
ii sun-java6-jre 6-15-1 Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent fil
ii sun-java6-plugin 6-15-1 The Java(TM) Plug-in, Java SE 6
un sun-java6-source <none> (no description available)

Revision history for this message
freethinker (pratikmsinha) wrote :

sudo update-java-alternatives --jre -s java-6-openjdk

Thats what was meant by the --jre option. This should work

Revision history for this message
Matthias Klose (doko) wrote :

not a bug closing the report

Changed in openjdk-6 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.