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.
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
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).
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.
Change the firefox and java paths so that they the same as the ones on your system. When you have created the symlink, start firefox and type "about:plugins" in the address bar to check if java is installed properly.
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
Save is as java.sh in /etc/profile.d and make it executable. Also change the java path so that it matches the one on your system. Log out and in again and everyone using your machine will have java in their path.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.