[ubuntu-za] Installing Java on 8.04 LTS

Hilton Gibson hilton.gibson at gmail.com
Thu Jan 15 12:12:36 GMT 2009


Alf Stockton wrote:
> Louis van der Merwe wrote:
>   
Hi Alf

Just a thought. What version of Java does Trac reccomend ?
Is there an Ubuntu install procedure on their website ?
Please send us the link ?

>>     .....snip..... 
>>
>> Hi Alf,
>>
>> Due to sun's license on java, linux distributions ship with a GNU 
>> version of java (gcj).
>> under /etc/alternatives, you will find symbolic links pointing some of 
>> the java components (java, javac, jar, ect ...)
>> to gcj. You installed sun-java correctly, but you're missing a step.
>>
>> after running apt-get install sun-java5-bin, you need to update your 
>> java alternatives (/etc/alternatives).
>> You need to use a tool called update-java-alternatives.
>>
>> run `update-java-alternatives -l` to get a list of all the java versions 
>> installed.
>>
>>     
> The above gave me:-
> update-java-alternatives -l
> java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
>
>   
>> 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.....:-(
>
>   




More information about the ubuntu-za mailing list