Ernest N. Wilcox Jr. wrote:
On Friday 26 August 2005 01:11 am, Rosemary McGillicuddy wrote:
  | Graham Watkins wrote:
  | > Rosemary McGillicuddy wrote:
  | >> Hi
  | >>
  | >> I downloaded java and then doubleclicked it to install.  When I try to
  | >> use it in firefox I get a message to donwload missing plug ins.
  | >> "locate" gives me this
  | >> [rosemary@(none) ~]$ locate java
  | >> /home/rosemary/.openoffice/user/temp/java
  | >> /var/lib/menu-xdg/applications/Mandrakelinux/System/Configuration/KDE/
  | >>WebBrowsing/khtml_java_js.desktop
  | >>
  | >> /var/lib/menu-xdg/simplified/applications/Mandrakelinux/AdministerYour
  | >>System/UseMoreAdministrationTools/Configuration/KDE/WebBrowsing/khtml_j
  | >>ava_js.desktop
  | >>
  | >> /usr/share/doc/libidn11-0.5.13/contrib/java
  | >> /usr/share/doc/libidn11-0.5.13/contrib/java/ExampleIDNA.java
  | >> with very much more ...
  | >>
  | >> What do I need to do.  I want to access a Genealogy Chat room.
  | >>
  | >> Thanks
  | >
  | > Does locate reveal a /usr/local/j2re(version) setup?  If not, then it
  | > isn't properly installed.
  | >
  | > If it does, then you need to create (as root) a symbolic link in your
  | > mozilla plugins folder(or whatever the equivalent is with firefox)
  | > pointing to the plugin in the java plugins folder.
  | >
  | > The following is cut and pasted from the set of instructions I used to
  | >
  | > create my link:
  | >> * Mozilla / Netscape 7
  | >>
  | >>   Create a symbolic link from   <Java2 RE
  | >> installation>/plugin/<ARCH>/mozilla/libjavaplugin_oji.so to   one of
  | >> the directories Mozilla/Netscape 7 searches for plug-ins.
  | >>   E.g.
  | >>    % ln -s
  | >> /usr/local/j2re1.4.2/plugin/i386/mozilla/libjavaplugin_oji.so \
  | >>      ~/mozilla-1.0/plugins/
  | >>   or
  | >>    % su # become root
  | >>    % ln -s
  | >> /usr/local/j2re1.4.2/plugin/i386/mozilla/libjavaplugin_oji.so \
  | >>      /usr/lib/mozilla/plugins/
  | >>
  | >>   Note: It has to be a symbolic link, copying libjavaplugin_oji.so
  | >>   will NOT work.
  | >
  | > Hope this is of some help
  |
  | I didn't get that set up for locate - see here >
  | [EMAIL PROTECTED] home]$ locate java
  | /home/rosemary/.openoffice/user/temp/java
  | /var/lib/menu-xdg/applications/Mandrakelinux/System/Configuration/KDE/Web
  |Browsing/khtml_java_js.desktop
  | /var/lib/menu-xdg/simplified/applications/Mandrakelinux/AdministerYourSys
  |tem/UseMoreAdministrationTools/Configuration/KDE/WebBrowsing/khtml_java_js
  |.desktop /usr/share/doc/libidn11-0.5.13/contrib/java
  |
  | I deleted the download I had and downloaded again, and it did the same
  | thing - installed to open office.  I followed instructions first time
  | from speculation.org and second time from sun.  I am at a loss to know
  | why it is doing this, and how I can change it.
  |
  | Thanks
  |
  |
  | Rosemary
  |
  | Registered Linux User # 386597  http://counter.li.org
  | "A friend may well be a masterpiece of nature".  Emerson
  |
  |
  |
  |
  | __________________________________________________________
  | 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,


An excellent exposition if I may say so.

If it isn't already on the Twiki, it should be.


--
Graham Watkins

It may be that your sole purpose in life is simply to serve as a warning to others.

Registered Linux user no. 389523  http://counter.li.org/

____________________________________________________
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