Welcome! Log In Create A New Profile

Advanced

kim

Posted by kim 
kim
kim
July 14, 2008 09:36AM
Hello,

looking for some pointers on installing jdk, as per the software page(http://dev.www.reprap.org/bin/view/Main/RepRapLinuxSoftware) i tried the following.

harlequin@piglet-ubuntu:~$ sudo apt-get install sun-java5-jdk

which appeared to work fine(AFAIK), but i got stalled on the next line of the manual with:

harlequin@piglet-ubuntu:~$ sudo update-java-alternatives --set java-5-sun
update-java-alternatives: directory does not exist: /usr/lib/jvm/java-5-sun

although checking the notes at the bottom of the page i tried

harlequin@piglet-ubuntu:~$ sudo update-java-alternatives -s java-1.5.0-sun
No alternatives for xulrunner-addons-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 xulrunner-addons-javaplugin.so.

but this doesnt appear to do what is required? and further command al la java3d packages won't install, any further suggestions?

kim
Re: kim
July 14, 2008 05:25PM
It looks to me like you did the right thing with update-java-alternatives. What does it seem to do wrong?

Could you provide details on the java3d package install issues?
Re: kim
July 15, 2008 02:29AM
Hi Kim,

If you type
sudo update-java-alternatives --list

then it will tell you what java JDK/JREs are available.

This is what I get on my PC:

davidr@bender:~$ sudo update-java-alternatives --list
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
davidr@bender:~$

I have 2 javas installed: java-6-openjdk and java-6-sun. I can then select which one using
sudo update-java-alternatives java-6-openjdk
OR
sudo update-java-alternatives java-6-sun

If you do the same, you *should* see something like java-5-sun, or java-1.5.0-sun - anything with '5' and 'sun'. Try typing

sudo update-java-alternatives

If that doesn't work, or there is no java 5 sun package, try re-running the install java line.

DaveR

Edited 1 time(s). Last edit at 07/15/2008 02:31AM by DaveR.
Sorry, only registered users may post in this forum.

Click here to login