LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-21-2005, 08:28 AM   #1
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Rep: Reputation: 15
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
 
Old 03-21-2005, 08:44 AM   #2
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
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/
 
Old 03-21-2005, 08:50 AM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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).
 
Old 03-21-2005, 10:29 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 03-21-2005, 02:41 PM   #5
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Original Poster
Rep: Reputation: 15
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.
 
Old 03-21-2005, 03:24 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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/.
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.
 
Old 03-21-2005, 07:39 PM   #7
lmanwarren
Member
 
Registered: Oct 2003
Location: Norwich NY
Distribution: Fedora 3
Posts: 128

Original Poster
Rep: Reputation: 15
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
 
Old 03-21-2005, 07:57 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You need to add the java path yourself. Here is how I did mine,
Code:
#!/bin/sh
export JAVA_HOME=/opt/java
export MANPATH="$MANPATH:/opt/java/man"
export PATH="$PATH:/opt/java/bin:/opt/java/jre/bin"
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.
 
Old 03-22-2005, 07:10 AM   #9
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
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!
 
Old 03-22-2005, 04:26 PM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
People use different methods to achieve the same thing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
Having trouble with Java KezzerDrix Mandriva 12 03-30-2005 09:06 AM
Javascript trouble in mozilla after install java sun danchiaperini Red Hat 1 11-09-2004 03:40 PM
Trouble with Java a2b2c2d Linux - Software 2 10-04-2004 08:58 PM
Java Install Trouble with Fedora Core 2 Thats_My_Camino Programming 0 09-15-2004 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration