[ubuntu-za] Installing Java on 8.04 LTS

Louis van der Merwe themandibleclaw at gmail.com
Thu Jan 15 12:14:50 GMT 2009


8<

>
>> then run `update-java-alternatives {java-version}` to relink to the
>> correct java installation
> and this gave me:-
> root at general:~# update-java-alternatives -s java-1.5.0-sun
> No alternatives for appletviewer.
> No alternatives for apt.
> No alternatives for extcheck.
> No alternatives for idlj.
> No alternatives for jar.
> No alternatives for jarsigner.
> No alternatives for javac.
> No alternatives for javadoc.
> No alternatives for javah.
> No alternatives for javap.
> No alternatives for jconsole.
> No alternatives for jdb.
> No alternatives for jinfo.
> No alternatives for jmap.
> No alternatives for jps.
> No alternatives for jsadebugd.
> No alternatives for jstack.
> No alternatives for jstat.
> No alternatives for jstatd.
> No alternatives for native2ascii.
> No alternatives for rmic.
> No alternatives for serialver.
> No alternatives for xulrunner-addons-javaplugin.so.
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/appletviewer
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/apt
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/extcheck
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/idlj
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jarsigner
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jar
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/javac
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/javadoc
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/javah
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/javap
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jconsole
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jdb
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jinfo
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jmap
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jps
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jsadebugd
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jstack
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jstatd
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/jstat
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/native2ascii
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/rmic
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/bin/serialver
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/java' to provide 'java'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/keytool' to provide 'keytool'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/orbd' to provide 'orbd'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/pack200' to provide 'pack200'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/policytool' to provide 'policytool'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/rmid' to provide 'rmid'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/rmiregistry' to provide 'rmiregistry'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/servertool' to provide 'servertool'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/tnameserv' to provide 'tnameserv'.
> Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/unpack200' to provide 'unpack200'.
> update-java-alternatives: plugin alternative does not exist:
> /usr/lib/jvm/java-1.5.0-sun/jre/plugin/amd64/ns7/libjavaplugin_oji.so
>
>>
>> `which jar` should now point to the jar binary for java 5
>>
> and which jar still retrieves nothing.....:-(
>

Hi Alf,

Something sounds really screwy with your java installation.

what are the results of ls /usr/lib/jvm/java-1.5.0-sun/bin?

mine are :

root at VodaBuntu:~# ls /usr/lib/jvm/java-1.5.0-sun/bin
appletviewer   jar        java-rmi.cgi  jsadebugd  ktab          rmiregistry
apt            jarsigner  javaws        jstack     native2ascii  serialver
ControlPanel   java       jconsole      jstat      orbd          servertool
extcheck       javac      jdb           jstatd     pack200       tnameserv
HtmlConverter  javadoc    jinfo         keytool    policytool    unpack200
i386           javah      jmap          kinit      rmic
idlj           javap      jps           klist      rmid
root at VodaBuntu:~#

I'd suggest purging your installation (using apt), and trying again.

I'm using 8.10, but here's what I get when running
update-java-alternatives (sorry, I forgot to tell you about the -s
parameter)

root at VodaBuntu:~# update-java-alternatives -s java-1.5.0-sun
No alternatives for firefox-javaplugin.so.
No alternatives for iceape-javaplugin.so.
No alternatives for iceweasel-javaplugin.so.
No alternatives for midbrowser-javaplugin.so.
No alternatives for mozilla-javaplugin.so.
No alternatives for xulrunner-1.9-javaplugin.so.
No alternatives for xulrunner-javaplugin.so.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/appletviewer' to provide 'appletviewer'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/apt' to provide 'apt'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/extcheck' to provide 'extcheck'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/HtmlConverter' to provide
'HtmlConverter'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/idlj' to provide 'idlj'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jarsigner' to provide 'jarsigner'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jar' to provide 'jar'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/javac' to provide 'javac'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/javadoc' to provide 'javadoc'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/javah' to provide 'javah'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/javap' to provide 'javap'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/java-rmi.cgi' to provide 'java-rmi.cgi'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jconsole' to provide 'jconsole'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jdb' to provide 'jdb'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jinfo' to provide 'jinfo'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jmap' to provide 'jmap'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jps' to provide 'jps'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jsadebugd' to provide 'jsadebugd'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jstack' to provide 'jstack'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jstatd' to provide 'jstatd'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/jstat' to provide 'jstat'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/native2ascii' to provide 'native2ascii'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/rmic' to provide 'rmic'.
Using '/usr/lib/jvm/java-1.5.0-sun/bin/serialver' to provide 'serialver'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/ControlPanel' to provide
'ControlPanel'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/java' to provide 'java'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/java_vm' to provide 'java_vm'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/javaws' to provide 'javaws'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/keytool' to provide 'keytool'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/orbd' to provide 'orbd'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/pack200' to provide 'pack200'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/policytool' to provide 'policytool'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/rmid' to provide 'rmid'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/rmiregistry' to provide
'rmiregistry'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/servertool' to provide 'servertool'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/tnameserv' to provide 'tnameserv'.
Using '/usr/lib/jvm/java-1.5.0-sun/jre/bin/unpack200' to provide 'unpack200'.
No alternatives for firefox-javaplugin.so.
No alternatives for iceape-javaplugin.so.
No alternatives for iceweasel-javaplugin.so.
No alternatives for midbrowser-javaplugin.so.
No alternatives for mozilla-javaplugin.so.
No alternatives for xulrunner-1.9-javaplugin.so.
No alternatives for xulrunner-javaplugin.so.
root at VodaBuntu:~#


cheers

Louis



More information about the ubuntu-za mailing list