Click to See Complete Forum and Search --> : How to get JAVA to work in Konqueror 2.2.1


kapwfm
10-20-2001, 12:26 AM
Okay, after only about 15 minutes of playing with it, I finally have JAVA on Konqueror 2.2.1! And, as I originally thought, it wasn't hard at all.

***Keep in mind: I'm running Konqueror 2.2.1, Mandrake 8.1 with kernel 2.4.3.***

Here's how I did it. I remember seeing/reading something on Konqueror's website that said that Konqueror really didn't like jre1.3x or something...so I downloaded jre-1_2_2_008.

So, I went to www.java.sun.com (http://www.java.sun.com) On the left-hand side of the web page (you may have to scroll down a bit), there are four drop-down menus. Under The JAVA Platform, select Runtime Environment. Now, it's going to tell you that the latest environment is version 1.3. But, since Konqueror supposedly doesn't like the 1.3 environment, you'll need to download the 1.2 environment. Scroll down a bit until you see the heading "Production Release." You're going to want to choose the third one (if you're using Linux) which is called: "JAVA 2 Runtime Environment v1.2.2_008 for Linux Production Release." Once you click on that link, it'll give you some notices which might be worth reading "just in case." Scroll down until you see text that says: "Download the JAVA...yada, yada, yada. Click the continue button. (Note: this file is around 12 mb, so if you're on a 56K modem, plan on a lengthy download. :) It only took me about, oh, two minutes to download on my high bandwith connection.

Anywho, read through the license agreement (if you really feel obligated to) and then click "Continue." Then, you'll get a choice to either download from FTP, or HTTP. Doesn't really matter which one you choose, but I've personally had better luck going the HTTP route. I downloaded this to my home directory. Why did I download it there, you may ask? It's just easier. And since I'm the only user on my machine besides root, that's where I wanted it. :) If you have other users on the machine, you shouldn't have a problem copying the compressed file to their home directory.

Anyways, once I was done downloading it, I unpacked it. Now, because I'm not all that good with the command line, I just right-clicked on the file and selected "Extract Here." Make sure all the files get extracted in your home directory. Now you should see a jre1.2.2 folder in your home directory. You can open that directory if you want...and when you do, you'll see other directories and some files as well.

Now you have to tell Konqueror what to look for...what the JAVA Executable Path is. Open up Konqueror, and go to Settings>Configure Konqueror...

A new window will open up with various options. On the left-hand side should be several options. Click "Konqueror Browser." Near the top of the window should be several tabs. Click the JAVA Tab. Be sure to click: "Enable JAVA Globally." There now should be an X in the box next to the text "Enable JAVA Globally." On the bottom of window will be a "path to JAVA Executable" feield. Now, if you downloaded this into your home directory, this should be easy to fill in. Browsing for the executable might be just as easy because hou wouldn't have to worry about making any typing errors.

So, click on the folder to the right of the "path" line. Navigate to your home directory -- if necessary -- then click the "jre1.2.2" folder, then the "bin" folder, and then double click "java." So, the executable line should look something like this provided you downloaded the file to your home directory:

file/<yourusername>/jre1.2.2/bin/java

Be sure to click "Apply" and then OK. Close out your Konqueror browser, then open up a new one. Look for a page that has a JAVA applet. www.java.sun.com (http://www.java.sun.com) has one on the right-hand side towards the top of the page. Within a few seconds (depending upon your Internet connection speed) the JAVA applet should show up! You now have JAVA!

Hope this has been of some help to some of you!

This post was written on 10/19/2001

bwkaz
10-20-2001, 09:01 AM
Originally posted by kapwfm:
<STRONG>***Keep in mind: I'm running Konqueror 2.2.1, Mandrake 8.1 with kernel 2.4.3.***</STRONG>

Ummmmm... Mandrake 8.1 comes with kernel 2.4.8, patch level -26mdk.

Mandrake 8.0 comes with kernel 2.4.3, with some -mdk patches as well.

Not that the kernel version really matters (it better not...), but just so you know, you have 2.4.8 unless you recompiled 2.4.3 (and why would you have downgraded that?).

kapwfm
10-20-2001, 01:15 PM
I upgraded from Mandrake 8.0 to 8.1. For some reason, my sound card didn't work under kernel 2.4.8, so I just reverted back to 2.4.3. All works fine for me now, and so does Automount. :) Not that automount was a big deal to me, but the sound was.

bwkaz
10-20-2001, 02:10 PM
Aaaah, I see.

Are you using OSS or ALSA? If ALSA doesn't support your card, that's why Mandrake 8.1 didn't work -- it uses ALSA by default, while 8.0 used OSS. What card do you have?

kapwfm
10-21-2001, 01:23 AM
I think it was using ALSA. I have a CMI-8330 card. The sndconfig utility detects it, but it can't seem to configure it. Plus, there are some other things wrong with kernel 2.4.8 that I somehow messed up. Whenever I boot that kernel, it always wants to access the floppy drive...and it continuously does this...and all my icons on KDE disappeared as well. Not sure what's up with that.

bwkaz
10-21-2001, 09:01 AM
Hmmmm, it's supported fully (the same level of support as my YMFPCI chip, anyway).

Weird. Oh well, if 2.4.3 works for you, go with it.

kapwfm
10-21-2001, 11:53 AM
It was my original intention to use the 2.4.8 kernel. I thought everything would beel all right, plus I'm hoping to get my scanner to work with it one of these days. The weird thing about it is when I rebooted after the initial install, the soundcard worked without any problems. But then when I rebooted my system, it wouldn't work. It would fail to load. It always looked like it was loading two sound devices for some reason. When it did work that first time, it appeared to load the two sound devices just fine. It was always the sb device that would fail. The other device would load without any problems. I kind of thought it was an IRQ conflict between the network card and the sound card.

And I'm not sure what happened with the icons or why my floppy drive is continuously being accessed whenever I boot the 2.4.8 kernel. All started out fine...even after the first reboot and when the sound card wasn't working. I was just creating some shortcuts to devices on my desktop when all of a sudden...poof! They all disappeared. No big deal, I thought as I restarted my X server. The same problem occurred. The icons would be there while KDE was loading, but then disappear when loading the desktop was complete. So, I restarted the whole system, and that's when I started having problems with the floppy drive along with the existing problems with the sound card and icons.

bwkaz
10-22-2001, 07:58 AM
Wow, that is weird.

I am at a loss for words....

Hmmmmmm.....

Well, it doesn't really matter as long as it works. And you got Java in Konqueror, so it's cool, even if your sound wants to play funny games..