Java Install trouble
Ok I installed fedora then tried installing java.I downloaded the jre-1_5_0_02-linux-i586-rpm.bin and ran it in a terminal.I agreed to the license and it inflated and gave me the rpm.I click the rpm and it goes through the install.Now if I go to applications and go to preferences there in the list is java and its the version I installed.If I go to /usr/lib/java there is the java folder in all its glory and I have no reason to believe its not installed.Now if i bring up a terminal and run java -version it comes back with a version that isn't even in my system instead of the one I downloaded.Now I was told I have to put java in my path so I edited /etc/profile.d and made it
export PATH=$PATH/usr/java/jre1.5.0_02/plugin/i386/ns7-gcc29 When I go to yahoo and try to play a game the applet doesn't load because I don't have java installed and I installed limewire but that won't even come up when I try to run it I assume because as far as its concerned java is no where to be found. I did the ln -s command and made the link in firefox for the java plugin.Now I am new so If I'm doing something wrong please tell me because I'm pulling out my hair |
To install java plugin in firefox:
$ ln -s /bla/bla/bla/plugin/i386/ns7/* /bla/bla/bla/plugins/ This is wrong: export PATH=$PATH/usr/java/jre1.5.0_02/plugin/i386/ns7-gcc29 This is right: export PATH=$PATH:/usr/java/bin/ |
Do "export PATH=$PATH:/usr/java/jre1.5.0_02/bin"
The limewire should then work. For applets, make a symbolic link to /usr/java/jre1.5.0_02/plugin/i386/ns7-gcc29/libjavaplugin_oji.so (it may have a different name, but it's the only file in there). Also I use the plugin in the ns7 directory, not the n27-gcc29. If one doesn't work, try the other. Also if you have other problems make sure gcj is not interfering (there might be a /usr/bin/java link to it that interferes). |
You are also trying to use the wrong plugin, on Fedora, don't use the plugin meant for gcc 2.x, use the one in the ns7 subdirectory and not ns7-gcc29.
|
Ok Lime wire is now up and running so one thing less to play with.I made the link in the firefox plugin folder but applets still fail to load.Say when trying to load a game in yahoo or pogo.This isn't big deal to me but is to the kids and when I get java straight going to get rid of XP.Now could there be something else I can check that I may have messed up preventing applets from loading.
|
To setup java poperly with firefox, get rid of the current link in the firefox plugins directory, then do
Code:
#ln -s /opt/jdk1.5.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.0.1/plugins/. |
Well got it so applets load say for games.So I wiped system out and just loaded fedora.I installed java again and run java -version at terminal to be told bash: java: command not found.Also in /etc/profile.d there is no java to edit to add java to my path.So new install and new probs lol
|
You need to add the java path yourself. Here is how I did mine,
Code:
#!/bin/sh |
I'm a bit confused here chaps,
Surely the simplest way to get java 'working' so you can just type java in the shell is to create a symlink to the java executable in somewhere like /usr/local/bin? I.e. ln -s /usr/java/jdk1.5.0/bin/java /usr/local/bin That way you don't have to bother exporting paths and all that rubbish and everyone can use java on the machine? One line in the shell and your laughing! |
People use different methods to achieve the same thing. :)
|
All times are GMT -5. The time now is 06:37 AM. |