On Wednesday 31 August 2005 08:30 am, Rosemary McGillicuddy wrote:
  | >   | __________________________________________________________
  | >   | Message transport security by GatewayDefender.com
  | >   | 1:16:27 AM ET - 8/26/2005
  | >
  | > I prefer to use RPM packages when possible since urpmi and its GUI
  | > interface make package management so much simpler. I will explain, in
  | > detail, the steps required to install java using an rpm package
  | > provided by Sun on Mandriva. I will also give the steps to make the
  | > java plugin available to Firefox
  | >
  | > I will make the following assumptions:
  | >
  | > 1. Minimal Linux knowledge [please do not be offended if this is not
  | > so]. 2. Firefox was installed with the mozilla-firefox RPM package
  | > provided by Mandriva.
  | > 3. Firefox is used to download the file from sun.
  | > 4. Firefox downloads files to the desktop.
  | > 5. The file downloaded from Sun is not already executable.
  | > 6. You are using the KDE desktop environment.
  | >
  | > Go to 'http://java.sun.com' to download the java package.
  | > There are two versions available, J2SE-5.0 or J2SE-1.4.2.
  | > Both work OK in Firefox, but AFAIK, only the 1.4.2 version works in
  | > Konqueror.
  | >
  | > Navigate to the downloads page. Make sure to select the link 'Linux RPM
  | > in self extracting file'. This will download a .bin file which contains
  | > the java RPM package.
  | >
  | > You will have to extract the RPM package from the .bin file in a
  | > terminal window as root, so you will have to make it executable first.
  | >
  | > Open a terminal window.
  | >
  | > Switch to your desktop directory:
  | > Enter: 'cd Desktop' [no quotes]
  | >
  | > Switch to the root user:
  | > Enter: 'su' [no quotes].
  | > Enter your root password when requested.
  | >
  | > Make the .bin file executable, then extract the RPM package:
  | > For 'J2SE(TM) Runtime Environment 5.0 Update 4':
  | > Enter 'chmod +x ./jre-1_5_0_04-linux-i586.bin' [no quotes].
  | > Enter './jre-1_5_0_04-linux-i586.bin' [no quotes],
  | >
  | > For 'Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_09':
  | > Enter 'chmod +x ./j2re-1_4_2_09-linux-i586-rpm.bin' [no quotes].
  | > Enter './j2re-1_4_2_09-linux-i586-rpm.bin' [no quotes].
  | >
  | > You should read their terms.
  | > To extract the RPM:
  | > Enter: 'yes <ENTER>' [no quotes] when asked to accept.
  | >
  | > After the RPM file has been extracted, you can install it with the
  | > Software Installer from within KDE filemanager. Keep the terminal
  | > window open. You will need it later.
  | >
  | > In filemanager, navigate to '~/Desktop'.
  | >
  | > Alt-Click the RPM package.
  | >
  | > Move the mouse cursor to 'Open With ...' in the context menu
  | >
  | > Select 'Software Installer' in the pop out menu.
  | >
  | > Click the 'Install' button
  | >
  | > Enter your root password when requested.
  | >
  | > The Software Installer will install the java package correctly for you.
  | >
  | > Click the 'Done' button.
  | >
  | > Java is now installed on your computer.
  | >
  | > Create a link between the java plugin and Firefox as root using the
  | > terminal window.
  | >
  | > Switch to the Firefox plugins directory:
  | > Enter: 'cd /usr/lib/mozilla-firefox-1.0.6/plugins' [no quotes].
  | >
  | > For 'J2SE(TM) Runtime Environment 5.0 Update 4', create the link:
  | > Enter: 'ln /usr/java/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so
  | > <ENTER>' [no quotes]
  | >
  | > For 'Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_09', create
  | > the link:
  | > Enter: 'ln
  | > /usr/java/j2re1.4.2_09/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
  | > <ENTER>' [no quotes].
  | >
  | > The next time you open firefox, java should work correctly.
  | >
  | > You can delete the .bin and the RPM files since they are no longer
  | > needed. I check the Sun WEB site about once a month for updates. If you
  | > choose, you can keep the RPM file in the location of your choice to
  | > avoid re-downloading the same package in the event of calamity.
  | >
  | > HTH,
  |
  | Many thanks for this.  After a lot of mucking around I did finally get
  | it going using the ln -s for the link.  Thanks for this excellent
  | tutorial.

You are welcome. I did correct the command in the twiki to be

'ln -s /usr/java/j2re1.4.2_09/plugin/i386/ns610-gcc32/libjavaplugin_oji.so'.

I usually set up links in KDE's filemanager, and I forgot to add the symbolic 
parameter in the original email. Sorry it added difficulty, but happy it was 
helpfull.

-- 
Ernie ([EMAIL PROTECTED])
         ICQ 41060744
         Registered Linux User 247790

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to