Installing Java in Mandrake
Hi everyone,
I downloaded the java rpm from java.sun.com and presumably installed it... It's here: /usr/java/j2re1.4.1_02 And in my user directory I have: /home/hex/j2re-1_4_1_02-linux-i586-rpm.bin But when I go to their "test" page I don't see the "coffecup logo" I'm supposed to see if java is installed.. what have I done wrong? Help please, thanks in advance. |
You still have to link the plugin to your browser. If your using Mozilla it would be something like:
ln -s /usr/java/j2re1.4.1_02/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.3/plugins |
Thanks Crashed Again :D didn't know about linking.. okay now I get this:
"get java applet started" but the coffeecup logo still doesn't appear. I know I did something wrong, just don't know what :( |
Did you set the environment variable for Java in your path?
|
enviroment variable? I did this:
[root@localhost hex]# ln -s /usr/java/j2re1.4.1_02/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.1/plugins If this what you mean by the enviroment variable then yes, I did.. As you can see I'm clueless :) Now mozilla (my version 1.1) crashes whenever I try to open a site with java in it |
here is a good explaination I have saved...
now we need to make it so the bash shell is told where java is installed to (through the use of environment variables) #> cd /etc/profile.d #> vi java.sh press 'i' on your keyboard (without the quotes), this enters vi's "INSERT" mode type these 4 lines into vi JAVA_HOME=/usr/java/j2re1.4.1_02 export JAVA_HOME PATH=$PATH:$JAVA_HOME/bin export PATH now press the escape key and type ':wq' (without the quotes), this saves and exits vi #> cd ~ browse to your home directory #> vi .bash_profile now right at the end of .bash_profile press 'i' (without the quotes) and type this line: export PATH=/usr/java/j2re1.4.1_02/bin:$PATH press the escape key and type ':wq' (without the quotes) the whole thread can be read here |
Quote:
/usr/java/j2sdk1.4.1_02/jre/plugin/i386/ns610/libjavaplugin_oji.so |
Try using the newer 1.4.2 beta release, this includes gcc 3.2 support. Some newer browsers will require using the file in ns610-gcc32 instead of ns610
|
Thanks everyone for answering, I was a bit busy last few days I will try your solutions out and let you know which works for me :)
|
You need to do what sandman said and make sure to chmod 755 java.sh or it wont be read properly !. also when you do the symlink try just having it as libjava.so in your mozilla plugin's dir. Suns docs are really quite bad. I am currently working on a java how-to (one of the only how-to's i cant find any of !)
|
Guys, I think I just went and made a HUGE mess of things.. I spent the best part of the day installing a newer version of mozilla 1.3.. when I open my browser and check the version it's still version 1.1?! Java still doesn't work because now I'm sure there's a mess with the linking and paths :( was I supposed to uninstall the older mozilla? Can someone help me fix this mess? Thank you very much indeed those who already answered my java question, and thanks in advance for any further help.
|
You should remove the old Mozilla. The new one is installed in /usr/lib/mozilla-1.3
|
All times are GMT -5. The time now is 09:16 PM. |