Re: JAVA Plugin Won't Work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have had several programs stop working when I de-install an older 
Java version. These programs usually have a startup script pointing to 
(among other things) to a variable called JAVA_HOME. Obviously, it is 
just a matter of looking hard enough and redirecting those scripts to 
the new JAVA_HOME, namely the latest java SDK or JRE you have installed.

I have a couple of clients qho have decided not to uninstall and have 
libçved "safely" for a year or so until they had MANY apps pointing to 
MANY JDK's. I guess I would suggest to review those scripts whenever 
you have the time.

To find out what version you have, type from a shell: java -version or 
java --version (depends on the flavor of *nix). Which by the way will 
be the first JAVA_HOME/bin you have in the PATH in the .profile 
or .login of the home directory of the user issuing the command. 
Therefore, if you have more than one JDK or JRE, the order of the PATH 
variable will be fundamental in deciding which one you will be using by 
default.

The appropriate command is -U.

Hope I have been of assistance!!

Saludos,
 
Arturo

----- Mensaje Original -----
De: Chris A Czerwinski <chrisczerwinski@xxxxxxxxx>
Fecha: Lunes, Diciembre 15, 2003 4:41 pm
Asunto: Re: JAVA Plugin Won't Work

> On Sun, 2003-12-14 at 22:19, Robert G. (Doc) Savage wrote:
> > On Sun, 2003-12-14 at 18:28, Dave Krick wrote:
> > > I am fairly new to Linux, and I can't seem to get Java to 
> work.  I've
> > > downloaded the plugin and followed the registration 
> instructions, all to
> > > no avail.  I've checked that my preferences have it enabled 
> and I've
> > > gone in as root to a web site that I know uses it and, when 
> prompted if
> > > I want to download it, I've said yes and, after doing it's 
> thing, it
> > > tells me that it was downloaded and installed okay.  I'll restart
> > > Mozilla and it still won't recognize Java.  
> > > 
> > > I'm running Fedora Core 1 and Mozilla 1.6.  I had the same 
> situation> > with Mozilla 1.5 and 1.4.  I have Fedora updated to 
> the latest status.
> > > 
> > > I would really appreciate it if anyone has any suggestions for 
> me.  If
> > > you do, please be detailed in any command line instructions.
> > 
> > Dave,
> > 
> > Here's a micro-howto I use. It includes instructions for either J2
> > Runtime Edition or J2 System Developer's Kit. Pick one.
> 
> 
> > Download latest J2RE or J2SDK from http://java.sun.com
> >  
> > 1.  $ chmod +x j2re-1_4_2_02-linux-i586-rpm.bin
> >     $ chmod +x j2sdk-1_4_2_02-linux-i586-rpm.bin
> > 
> > 2.  $ ./j2re-1_4_2_02-linux-i586-rpm.bin
> >     $ ./j2sdk-1_4_2_02-linux-i586-rpm.bin
> > 
> > 3.  $ su -
> >     Password: ********
> >  
> > 4.  # rpm -ivh j2re-1_4_2_02-linux.i586.rpm
> >     # rpm -ivh j2sdk-1_4_2_02-linux.i586.rpm
> >  
> > 5.  # cd /usr/lib/mozilla/plugins
> >  
> > 6.  # ln -s /usr/java/j2re1.4.2_02/plugin/i386/ns610-
> gcc32/libjavaplugin_oji.so>     # ln -s 
> /usr/java/j2sdk1.4.2_02/jre/plugin/i386/ns610-
gcc32/libjavaplugin_oji.so
> >  
> > 7.  # ls -l
> >     total NNNN
> >     ...
> >     lrwxrwxrwx    1 root     root    72 Dec  2 06:46 
> libjavaplugin_oji.so -> 
> /usr/java/j2sdk1.4.2_02/jre/plugin/i386/ns610-
gcc32/libjavaplugin_oji.so
> >     ...
> >  
> > That's it.
> 
> or is it?
> 
> Hi Robert (Doc),
> 
> Great intro to -howto? that's what I like to see for me a newbie at
> Fedora, not just "man" something or see link url. These finer 
> points are
> what newbies can appreciate and follow instructions and realize that's
> it's not just RPM. Not all RPMS are thorough and do what people think
> they should simply do. Newbies can now get their linux legs started.
> 
> A couple of questions to a newbie (me especially) on using RPM's.
> 
> How do you know you have Java and which version or want to upgrade?
> 
> Should you not check to see if you have Java installed?
> and what would that command be ( > rpm -q java) ????
> 
> And if you have it, what would be the appropriate command for 
> upgrade 
> ( > rpm -u or -U *.rpm)
> 
> About plugin's - will you still have to modify the links (ln)? and 
> will the links stay on reboot?
> 
> 2nd last point, how can I test to see if Java is executing the proper
> version or has been installed? Which comes back to the first question?
> 
> Lastly, how do I do a cleanup or remove old/previous version of 
> Java or
> I don't - because there may be programs that have been linked to this
> dir?
> 
> Thanks
> 
> Chris Cz
> 
> > 
> > --Doc Savage
> >   Fairview Heights, IL
> > --
> > fedora-list mailing list
> > fedora-list@xxxxxxxxxx
> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux