Script to install Java Runtime Environment

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
playdayz
Posts: 3799
Joined: Fri 25 Apr 2008, 18:57

Installing Java - It's not that hard

#21 Post by playdayz »

Java always seemed mysterious and frustrating to me, but no longer, probably because I have made so many mistakes at it. I just installed it without any script, pet, or sfs and if I can do it, then anyone can do it.

1. Download java from java.com. I prefer to download it to /mnt/home to conserve my ram.

2. When it is downloaded open a Rox window and go to the place where you downloaded Java. First, Right-Click the java file and then choose Permissions and Yes to make the file executable. Second, Right-Click -> Window -> Terminal Here.

3. In the terminal enter

Code: Select all

./jre-6u14-linux-i586.bin
( or whatever the name of the java file is). Don't forget the "./" to begin. You will need to scroll down to accept the license agreement and then the install program will create a folder named "jre1.6.0_14' or something like that.

4. Take that folder and put it in /usr/lib or in /usr or in /opt, etc. I am not sure there is a best place for it. I actually leave it right there in /mnt/home.

5. Open the folder jre1.6.0_14/plugin/ i386/ns7/ and drag the libjavaplugin.oji to either /usr/lib/mozilla/plugins or /root/.mozilla/plugins and choose Link (relative). This will enable java for Seamonkey and Firefox. To check, open Seamonkey 1.1.x and then Help -> About Plugins to see java there. In Firefox, Click Tools -> Addons -> Plugins and see a java plugin there. Go to java.com and click Do I Have Java?

6. If you want to use java in OpenOffice, then start OpenOffice and click Tools -> Options -> Java -> Add and then navigate to open the jre1.6.0_14 folder and click Select. It will show you that it recognizes Sun Java and then ask you to restart.

Java in Opera. Open Opera and click Tools -> Preferences -> Advanced -> Content. Make sure Enable Java is checked and click Java Options. Click Choose to find the path jre1.6.0_14/lib/i386. Select that and click Validate Java Path.

Enjoy Java, and be ready and able to do it yourself.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#22 Post by ecomoney »

Thank you Playdayz for the step by step instructions, they will be very useful for people creating puplets that include Java. One of the things that is great about linux is that its possible for experts/enthusiasts to get their hands dirty under the hood and do jobs like this themselves, and many people enjoy doing this (including myself!). The majority of computer users in the world are not yet "linux-literate" however, most of them barely computer literate!

As a "newbie friendly", distro an automated installer would go a long way to re-assure/convince Windows refugees early on that linux was able to fulfill their computing needs....after which their knowledge would grow to be able to undertake operations like the one described above manually.

Many of the refugees I look after tell me that many things (such as the facebook chat) do not work with standard puppy linux (they are unaware as yet this requires java). Perhaps an automated installer could also inform the user what was required (java), and offer the option of installing it manually.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Post Reply