LinuxQuestions.org
Review your favorite Linux distribution.
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 02-20-2005, 06:58 PM   #1
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Rep: Reputation: 0
linking JRE 5.0 to firefox and limewire


I'm running Fedora core 3, Trying to get limewire up and running. I've installed the JRE 5.0 and lime wire. When I try to launch limewire from the terminal it says it "cant find java" also when I go to the java test webpage, no steaming joe This is becuase the pluggin isent "soft linked" right? now I'm asuming the same needs to be done for limewire?
This is my second distro install to get limewire up and running on a linux box

Any time and energy in this matter is GREATLY apricaited
feel free to email me!

thanks
 
Old 02-20-2005, 09:40 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you installed the rpm, you need to add the lines below to you .bash_profile, then log out and back in again.

export PATH=$PATH:/usr/java/jdk1.5.0_01/bin
export PATH=$PATH:/usr/java/jdk1.5.0_01/jre/bin
 
Old 02-21-2005, 12:10 AM   #3
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
Talking Did I not mention I'm a newb?

what is my ".bash_profile" and how do I update it with the lines you gave me? I dont even know how to "cd"

I unnderstand the comands, but dont understand the "DIR" enough to go from one place to the next in the terminal. Can I update my .bash_profile from a GUI ? or from the terminal. Sorry for my lack of understanding, but your time, energy and patience is verry much needed and put 2 good use!
thank you!
 
Old 02-21-2005, 12:39 AM   #4
lukeleia3
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 9.0 Dolphin Release 2.4.19-16mdk
Posts: 24

Rep: Reputation: 15
show hidden files in the user that you will use for the program you want

open the .bash_profile in your faorite text editor

add the line PATH=$PATH:/yourjavalocation/bin

example PATH=$PATH:/home/johnsmith/jre1.5.0_01/bin

save exit and install it should now find it.
 
Old 02-21-2005, 01:18 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
As mentioned your .bash_profile is a hidden file in your home directory (/home/username) that contains certain settings used by the bash shell. All you need to do is edit it using and editor such as pico, emacs or vi, by starting a console and doing something like,
$emacs .bash_profile
or with a gui text editor such as gedit or kwrite as follows
$kwrite .bash_profile
Add the two lines from my previous posts to the end of the file, log out and back in again and java should be recognised as installed.
 
Old 02-21-2005, 01:53 AM   #6
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
Angry still no luck

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

export PATH=$PATH:/techmaster/java/jdk1.5.0_01/bin
export PATH=$PATH:/techmaster/java/jdk1.5.0_01/jre/bin

This is what I've done it doesent work YET (it will!!) so SOMTHING is still wrong? Now the funny thing is when I follow the "path" through the GUI (you know home, java, etc..) all i find in my .java folder is a sub-DIR "deployment" and within that DIR a "deployment.properties" text file and from there: tmp/si/EMPTY. I changed the folder options to "view hidden files" still not seeing the "path" ? I dont get it?!? can I not browse some file sys from a GUI in linux?
I'm 98.9% positive java is installed! the rpm was green after install, ran --test and it said it was installed. and I can open the JRE through the GUI?

owe one more thing, since the changes I've made to this file firefox seems to be loading slow? could just be my connection?

Thank you all VERRY much for your help! I'm learning alot and loving my new OS FC3 !
 
Old 02-21-2005, 03:09 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Did you install the java rpm from the Sun website and if so whats the exact version? Also what version of limewire are you trying to install, is it the rpm or some other file? To find out if java is installed properly, run the command,
$java -version
 
Old 02-21-2005, 09:52 AM   #8
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
command didnt work?

when I go to prefrences/java it says the version is 1.5.0 (build 1.5.0_01-b08) but when I attempt t use the command you provided I get a command not found error? and the the version of limewire I'm trying to install is LimeWireLinux.rpm directly from there website! its icon is listed in the main menue (applications) under internet. But when I click on it nothing happens. but when I run from console it says "error: cannot find java"

I'm not giving up !!!!

JHONY NEEDS INPUT!!!!!!
 
Old 02-21-2005, 10:21 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
There is something wrong with the path you printed in the .bash_profile. Did you install the java rpm or did you install the bin file. If you installed the bin file, where exactly did you install it (full path).

Last edited by reddazz; 02-21-2005 at 10:23 AM.
 
Old 02-21-2005, 10:28 AM   #10
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
Extracting...
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-1_5_0_01-linux-i586.rpm
Preparing... ########################################### [100%]
package jre-1.5.0_01-fcs is already installed


this is the version I've installed (so it says)

but when I go to usr/java I cant find the version? but I cant get there through a console I haved mastered the file system yet. I nav through the GUI (home/.java/etc.....)
Do i need the JDK or will the JRE do what I need?
 
Old 02-21-2005, 10:32 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Ok, I have read through the posts again and your .bash_profile is definitely wrong. You said you installed the rpm right. Well the rpm installs java in /usr/java, so the path you need to add to you .bash_profile if you installed jdk1.5.0_01 is the one I posted above as it is. If you installed any other version, adjust the paths accordingly.
 
Old 02-21-2005, 10:32 AM   #12
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
[root@localhost techmaster]# limewire

******************************************************************
Error: Unable to find java.
Please make sure that java is in your PATH.
Visit http://www.java.com/en/download/manual.jsp for more information.
(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)


this is what I get when I try to launch limewire from within a console
 
Old 02-21-2005, 10:39 AM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Right, it seems like you installed the jre and not the jdk my fault for not reading your posts properly. The jre should be located in /usr/java/jre1.5.0_01, so you .bash_profile should be like so

export PATH=$PATH:/usr/java/jre1.5.0_01/bin
 
Old 02-21-2005, 10:54 AM   #14
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
For firefox, you need to create a symlink, as follows
#ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-version/plugins/.
Make sure you put in the right path to you firefox installation. As I posted above disregard the previous instructions coz they related to the jdk and just put into your .bash_profile the single line that relates to the jre thats in my last post.
 
Old 02-21-2005, 11:30 AM   #15
rpmheadache
LQ Newbie
 
Registered: Feb 2005
Location: Vt
Distribution: linux redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
[techmaster@localhost ~]$ whereis java
java: /etc/java /usr/share/java
[techmaster@localhost ~]$ whereis limewire
limewire: /usr/bin/limewire
[techmaster@localhost ~]$ whereis jre1.5.0_01
jre1.5:
[techmaster@localhost ~]$


Does this help? console cant seem to find "jre1.5.0_01" ? also I put the lines you gave me for firefox into console (is that what I was supposed 2 do) and still no steeming joe and limewire still cant fing java. thank you for all your help man! really I wont give up if you dont give up on me what the hell am I doing wrong/not doing?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LimeWire, JRE, $PATH morte313 Linux - Software 5 08-25-2005 04:03 PM
firefox 1.0.4 / jre 1.4.1_02 undef00 Linux - Software 7 08-11-2005 05:18 PM
Install/Uninstall LimeWire...PATH...JRE joe6pack Linux - Software 7 03-07-2005 06:30 PM
jre blips out Firefox dfowensby Fedora 1 01-26-2005 01:48 AM
Firefox and JRE merchtemeagle Linux - Newbie 3 10-17-2004 09:37 AM

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

All times are GMT -5. The time now is 08:54 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