Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th August 2007, 04:55 PM
fryemo's Avatar
fryemo Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 69
Putting Java in the path for Limewire

I am trying to install Limewire. I am running Fedora7. After unzipping the LimeWireOther.zip file the program wont run. I get the following error message
[root@jfryelocalhost LimeWire]# sh ./runLime.sh
: command not found5:
: No such file or directory
: command not found9:
: command not found23:
'/runLime.sh: line 24: syntax error near unexpected token `
'/runLime.sh: line 24: `look_for_java()
I think it is because java is not in the path
how do I put java in the path? I am running JRE 1.6.0.2 and it is installed and running.
fryemo
Reply With Quote
  #2  
Old 10th August 2007, 05:49 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
It would help if you could quote the first few lines of runLine.sh, so we can see what line 5 does.
Assuming "the path" is the path of the users shell, you can add a command to the users .bashrc file to add things to the path. I think if you used the advanced search feature of the forum and search for "bashrc", you can find examples of how to do this. Let us know if you need more specific directions.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #3  
Old 10th August 2007, 07:34 PM
fryemo's Avatar
fryemo Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 69
Here is the first few ine of the runLime.sh file. also I am running jre 1.6.0.2 and it is running with no problems.
#!/bin/bash
#
# Runs LimeWire. This script must be executed in your LimeWire
# install directory.

# this should allow starting limewire from
# gui-based explorer interfaces
cd "`dirname "$0"`"
also I installed this program with the instructions below. It ran at first by using the ./runLime.sh command but would not run from the menu. I unfortunately uninstalled the program by deleting the directories and it wont re install. There are dependancies that won't resolve and I am assuming that it is a java problem but it may not be. This must have been caused when I deleted the limewire directories and tried to reinstall them.
unzip -u LimeWireOther.zip -d /opt/
rm -f LimeWireOther.zip
gedit /usr/bin/runLime.sh

* Insert the following lines into the new file

cd /opt/LimeWire/
./runLime.sh

* Save the edited file

chmod +x /usr/bin/runLime.sh
gedit /usr/share/applications/LimeWire.desktop

* Insert the following lines into the new file

[Desktop Entry]
Name=LimeWire
Comment=LimeWire
Exec=runLime.sh
Icon=/opt/LimeWire/LimeWire.ico
Terminal=false
Type=Application
Categories=Application;Network;

* Save the edited file

* Applications -> Internet -> LimeWire
if I need to edit the bashrc file can you give me the lines I need to add and I will use gedit.
thanks alot for your help
fryemo
Reply With Quote
  #4  
Old 10th August 2007, 08:04 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
I can't make any correspondence between the error messages that you got and the lines in the script. It says command not found for line 5, but line 5 has no command.

The directions you quoted assume that you will put intallLimewire.sh in the /opt/LimeWire directory and run it from there.
Try running the script from the command line by using its full path:
/opt/LimeWire/runLime.sh

(Make sure that the file runLime.sh exists in the directory /opt/LimeWire )

When you need to add /mydirA/mydirB to your path, edit your .bashrc file and add the lines:

PATH=$PATH:/mydirA/mydirB
export PATH

But I don't know what what you need to add to your path yet. Are you running the script from a command line or from a gui interface?
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #5  
Old 10th August 2007, 09:09 PM
fryemo's Avatar
fryemo Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 69
I am running the script from the command line. here is what I get when using the full path
[jfrye@jfryelocalhost LimeWire]$ cd /opt/LimeWire/runLime.sh
bash: cd: /opt/LimeWire/runLime.sh: Not a directory
Here is the contents of the LimeWire directory
[root@jfryelocalhost LimeWire]# ls
clink.jar httpcore.jar libtray.so README.txt
commons-httpclient.jar httpcore-nio.jar LimeWire.jar root
commons-logging.jar icu4j.jar limewire.js runLime.sh
commons-net.jar id3v2.jar log4j.jar SOURCE
commons-pool.jar jcraft.jar log4j.properties spacer.gif
COPYING jdic.jar looks.jar themes.jar
daap.jar jdic_stub.jar magnet.protocol tritonus.jar
data.ser jl011.jar MessagesBundles.jar vorbis.jar
foxtrot.jar jmdns.jar mp3sp14.jar xml.war
hashes libjdic.so ProgressTabs.jar
runLime.sh is a green font,root is a blue font, and spacer.gif is a purple font.
lines 5 and 9 of the runLime.sh file are indeed blank. could this be the problem?
I really appreciate your time. I have struggled with this for hours and hours to no avail. I could just use amule but I have this will not to be beaten by this problem.
thanks again,
fryemo
Reply With Quote
  #6  
Old 10th August 2007, 09:12 PM
fryemo's Avatar
fryemo Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 69
PS. this is the error message trying to run from the LimeWire directory
[root@jfryelocalhost LimeWire]# ./runLime.sh
-bash: ./runLime.sh: /bin/bash^M: bad interpreter: No such file or directory
Reply With Quote
  #7  
Old 10th August 2007, 09:20 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,847
Hello you are trying to run the run command it should be
Quote:
java -jar LimeWire.jar
Reply With Quote
  #8  
Old 10th August 2007, 09:26 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,847
sorry i wasnt very clear, im guessing you downloaded 'other' from limewire's site just unzip it cd to the directory and run the command i stated above, obviously with root privalages ./runLime.sh s wrong although at first glance i can see why you thought that.
Reply With Quote
  #9  
Old 10th August 2007, 09:36 PM
fryemo's Avatar
fryemo Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 69
Thanks a million! it worked. Eureka.

fryemo
Reply With Quote
  #10  
Old 10th August 2007, 09:42 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,847
Another way would be
Quote:
su
wget http://www.limewire.com/LimeWireSoftLinux
rpm -Uvh --nodeps LimeWireLinux.rpm
which i should of posted first really
Reply With Quote
  #11  
Old 10th August 2007, 10:18 PM
fryemo's Avatar
fryemo Offline
Registered User
 
Join Date: Jul 2007
Location: Virginia
Posts: 69
thanks again.
Reply With Quote
Reply

Tags
java, limewire, path, putting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting Adobe Reader in Path, Variable theAdmiral Using Fedora 5 17th July 2009 03:01 AM
limewire or java nnadithya Using Fedora 7 24th February 2007 12:42 AM
Limewire Pro and java Rick069 Using Fedora 5 1st October 2005 04:40 PM
limewire and java nacchrist Using Fedora 3 5th July 2005 08:20 PM
Limewire/Java? carlwill Using Fedora 13 19th May 2005 12:27 PM


Current GMT-time: 21:54 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat