blogXO
Welcome at » Installing Java

Installing Java

I’ve been trying out ‘Lil XO as an ebook reader. To test ebook reading I’ve been searching for interesting ebook sites. Many ebooks are available in pdf form and can be downloaded but in my research I came across this interesting digital library site International Children’s Digital Library. ‘Lil XO had a difficult time loading the web page so I decided it was time to install Java as it was obvious the site was using java scripts. Once I installed java and set the preferences in Opera to use java the site opened up just fine.

To install java and have it work correctly with Opera takes 3 discreet steps:

  1. getting the current java software from Sun
  2. installing the java software
  3. configuring Opera to use the java software

Let’s do it!

To get the java software from Sun

  1. visit the Sun Java web page http://java.sun.com
  2. in the Popular Downloads box click on Java SE
  3. click on the Download box next to JDK 6 Update
  4. click the circle next to Accept License Agreement
  5. click on the Linux RPM in self-extracting file link
  6. click the Save button
  7. choose /home/olpc as the directory for saving
  8. click save again
  9. be patient :-)

To install the Java software do:

  1. go to the Terminal Activity (of course :-))
  2. in the Terminal type su -
  3. type cd /home/olpc (this is where the java software was saved)
  4. type chmod u+x jdk* (the * is so you don’t have to type the entire file name)
  5. type ./jdk*
  6. follow the instructions

Skip this next step if you are planning on installing and using Firefox instead of Opera.
To make Opera java aware do:

  1. in the Terminal Activity type ls /usr/java
  2. take note of the full name of the jdk;
    for instance on my install it is: jdk1.6.0_05
  3. go to Opera
  4. click on the Opera menu and select Tools
  5. on the Tools menu select Preferences
  6. click on the Advanced tab
  7. click on Content
  8. click on the Enable java box
  9. click on the java options box
  10. enter /usr/java/ /jre/lib/i386
  11. on my XO I entered /usr/java/jdk1.6.0_05/jre/lib/i386
  12. click ok
  13. click ok again

To test that Opera is now java aware try visiting International Children’s Digital Library. The page should load very quickly.

2 Responses




  1. I don’t see an option on the sun download page to save to a particular directory- do you know what the default location is for downloads on the XO? I think I can do the rest if I know that path. thanks for the great instructions- I’m trying to get 6 XO’s running java so that they can run some school web-software.
    thamks,
    Eric Q




  2. Eric,

    Have you upgraded to Opera? If you try to use the built in Browse activity downloaded files get stored in the journal activity. Files stored via the journal activity are here:

    /home/olpc/.sugar/default/datastore/store

    but the name won’t match the jdk you downloaded. If you do the following 2 commands:

    cd /home/olpc/.sugar/default/datastore/store
    ls -ldt *

    the file that is at the top of the list might be the jdk. You could try substituting the file name where I have jdk*.

    Another thing you could try is to use a different computer and download the jdk to a USB drive. You could connect the USB drive to the XO and access it via the terminal.

    Good luck,
    Julie

Leave a Reply