Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I actually wiped everything out and did a fresh clean install of redhat. did all the updates from rhn including kernel and all the updates, etc. installed the kde desktop this time instead of gnome.
downloaded the current sdk for java instead of just the vm (because all of this is actually because i want to do some java programming in the first place, i suppose I better get the sdk LOL)
then went to Konsole, did su root, then went to /usr/java/j2sdk1.4.2_04/jre/bin and did this command: sh ControlPanel (somewhat based on these instructions) the script didnt work quite right so i improvised a little. when I browsed to the dir ControlPanel was in I noticed a little 'sh' on the icon and figured it ought to work...
the sh ControlPanel command launches a gui...in the control panel gui, I only changed one thing: under the advanced tab I pointed it to the proper path for the java executable, which in my case is /usr/java/j2sdk1.4.2_04/jre
next I opened up a Konqueror browser session, and at the top of the window I clicked on 'settings' and then 'configure Konqueror' and went to where it says 'java/javascripts'
next I edited the part where it says 'Path to Java executable' so that it points to /usr/java/j2sdk1.4.2_04/jre/bin/java, and also ticked off the box that enabled java globally
then created my bashrc file following exactly what vector said to do. as I didnt have a bashrc file, I just went back to Konsole again and typed 'vi /home/bashrc 'and put in the lines that violator has and bingo I have a new bashrc file.
now it works. woot.
(if anyone read my post here before I edited it, I was getting frustrated, and after thinking about it thought better of it and edited it. if you read it before I got to editing it, I apologize)
vectordrake, many thanks for your very detailed how-to on getting the java plugin to work in firefox. (and many thanks to the other newbs who ask better questions than i do.)
Thatnks for telling all of us what actually worked. Anybody who actually botheres to use the search function will see what you did to solve their own problem and won't have to ask, as you already did .
Unfortunately, now I gotta reinstal this stuff...my hard drive decided it wasn't gonna work any more.
BTW, I have backed up. Just barely. I almost gave it an extra day. I got lucky. no data lost. No real HD space, though. I pulled a gigger from an old pentium I had in the back room. I gotta save for a new drive. Thinking about WD800. 3 year warranty. Got me peaked.
That means that currently you can't see it even if its installed. What you really need to do is to update your slocate database. Here's how:
-su to root
-type updatedb
-wait for it to finish churning - its cataloging every file on your computer
-when done, type "locate firefox" or "slocate firefox"
I wouldn't narrow down to mozilla-firefox (mainly because you will get your results better this way)
What you will get is a list of every instance of "firefox". If its installed, you'll get the whole path to the directory, etc.
Let's back up for a sec (not the kind of backup I'm glad I did).
How did you install firefox? Did you get the .tar.gz from the mozilla site? Or did you install it from the cd? Its important to find out where the plugins directory is located. Once you find it, you should be able to make that symbolic link to the java plugin. By the way, if you use any java pre-1.5beta, your java plugin will be called javaplugin_oji.so and it has to be linked in the plugin directory as libjavaplugin_oji.so.
if you were then to do a ls -al on this directory, you'd get a listing of the files includint their owners and any symbolic links.
Try firing up the browser after that and typing "aboutlugins" in the address line. If there is a ling section about java stuff in there, you're good to go. Take it to Yahoo games and see if it'll run on their cruddy excuse for java applets. If it'll run there, it'll run any java pages, IMO.
[QUOTE]Originally posted by vectordrake
-su to root
-type updatedb
-wait for it to finish churning - its cataloging every file on your computer
-when done, type "locate firefox" or "slocate firefox"
I wouldn't narrow down to mozilla-firefox (mainly because you will get your results better this way)
Ok, i know it's installed, but I did steps 1-4, but when I typed in "locate firefox", it just gave me another line as usual saying "bash1.4 whatever". I know it's installed, but why is this not working?
What tools are missing from phlack??????Jaysuse!
I guess you'll have to check various directories manually. Look in /usr and /opt for sure. Try /usr/lib and /usr/local. I haven't used Phlack so I don't know where to go with it.
ok I had this problem I instead of linking the java program to /usr/lib/mozilla-*.*/plugins I went to my home dir and the mozilla dir by running "cd ~/.mozilla/" then I did a "mkdir plugins". then "cd plugins" then "ln -s /usr/java/j*/plugins/i386/ns/libjavaplugin_oji.so ."
Now with mozilla 1.6 in linux redhat 9 and java 1.4.2 I ran "/usr/java/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so" this may need some experimenting to find the right libjavaplugin_oji.so. I went ahead and tried each one. until I found one that worked. Make sure that your path varible has the path to the java bin directory. to see if at a prompt loged in as the user that you will use with java. run "export | grep path" if there is a path to /usr/java/>>/bin then your find otherwise you must edit "~/.bash_profile" and follow the advice of vectordrake.
Help! I made some progress in that I installed latest Java - version 1.4.2_05. It's installed in the "/usr/java/j2re1.4.2_05" directory however when I type "java -version" I still get this older version output:
So, despite above success (?), "java -version" cmd returns wrong version AND now my Mozilla Web Browser doesnt start up. I'm guessing I mixed/matched wrong Java versions or something as cautioned above somewhere but it's above my head.
Any ideas/help?
On the plus side, Konqueror now display Java pages properly by configuring it as suggested above (Java/JavaStart settings).
For what it is worth the above procedure also worked well to get JV working with Netscape 7.2 on Mandrake 10.1.
The procedure being :
install the java rpm from Mandrake (j2re-1.4.2_05-2mdk.i586.html) found in commercial section of rpm's
Then via a root console navigate to the location of netscape plugins.
Once there, create a link to the location of your java plugin with the command below:
ln -s /usr/java/j2re1.4.2_05/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
Thanks for all the help from those responses above - I love linux?.org
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.