UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Hi Everyone, Okay here's the situation, I installed Limewire, and java 5.0 runtime, but limewire does not work, what do i do to fix this?, i think the solution would be to upgrade my version of Java to the correct one. Any Help would be great as to solving my situation. I installed the free version by downloading the rpm and using alien to convert it after which i installed it.
Hi Everyone, Okay here's the situation, I installed Limewire, and java 5.0 runtime, but limewire does not work, what do i do to fix this?, i think the solution would be to upgrade my version of Java to the correct one. Any Help would be great as to solving my situation. I installed the free version by downloading the rpm and using alien to convert it after which i installed it.
Hi!
You might consider posting what errors you are getting when asking a question, otherwise it is impossible to guess if your problem is Java itself or something else. First, what Java are you using? I hope you are using the one from Sun, because gcc-java is pretty much worthless. Take a look in here to get the correct version of java installed:
If that does not help and since Limewire is written in Java, I highly recommend you to use the java binary ratter than the .rpm file. Go to limewire's homepage and download the "LimewireOther" or whatever it is called (it is a zip file). Unzip that file (unzip LimeWireOther.zip), and from inside the unziped folder, try running: java -jar LimeWire.jar.
That's an odd error indeed. You could try to open script "runLime.sh" with a text editor and check line 44 as the error suggests and try to fix that script. If that is indeed the problem, it should not be hard to fix at all. You can post that file here if you are afraid to modify it.
If you don't want to fix Limewire, but ratter remove it, you could easily remove it through synaptic. But I would try to take a look at that little script first since you are so close to get it to work, apparently
Good luck!
Last edited by Mega Man X; 03-21-2007 at 01:23 PM.
#!/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"`"
# try to discover java
MSG0="Loading LimeWire:"
MSG1="Starting LimeWire..."
MSG2="Java exec found in "
MSG3="OOPS, your java version is too old "
MSG4="You need to upgrade to JRE 1.4.x or newer from http://www.java.com"
MSG5="Suitable java version found "
MSG6="Configuring environment..."
MSG7="OOPS, you don't seem to have a valid JRE. LimeWire works best with Sun JRE available at http://www.java.com "
MSG8="OOPS, unable to locate java exec in "
MSG9=" hierarchy"
MSG10="Java exec not found in PATH, starting auto-search..."
MSG11="Java exec found in PATH. Verifying..."
look_for_java()
{
JAVADIR=/usr/lib
if look_for_javaImpl ; then
return 0
fi
JAVADIR=/usr/java
if look_for_javaImpl ; then
return 0
fi
JAVADIR=/opt
if look_for_javaImpl ; then
return 0
fi
return 1
}
look_for_javaImpl()
{
IFS=$'\n'
potential_java_dirs=(`ls -d1 "$JAVADIR"/j* | sort | tac`)
for D in "${potential_java_dirs[@]}"; do
if [[ -d "$D" && -x "$D/bin/java" ]]; then
JAVA_PROGRAM_DIR="$D/bin/"
echo $MSG2 $JAVA_PROGRAM_DIR
if check_version ; then
return 0
fi
fi
done
echo $MSG8 "${JAVADIR}/" $MSG9 ; echo $MSG4
return 1
}
check_version()
{
# short-circuit gcj
ISGCJ=`${JAVA_PROGRAM_DIR}java -version 2>&1 | grep -i gcj`
if [ "$ISGCJ" != "" ] ; then
echo $MSG7
return 1
fi
JAVA_HEADER=`${JAVA_PROGRAM_DIR}java -version 2>&1 | head -n 1`
JAVA_IMPL=`echo ${JAVA_HEADER} | cut -f1 -d' '`
if [ "$JAVA_IMPL" = "java" ] ; then
VERSION=`echo ${JAVA_HEADER} | sed "s/java version \"\(.*\)\"/\1/"`
if echo $VERSION | grep "^1.[0-3]" ; then
echo $MSG3 "[${JAVA_PROGRAM_DIR}java = ${VERSION}]" ; echo $MSG4
return 1
else
echo $MSG5 "[${JAVA_PROGRAM_DIR}java = ${VERSION}]" ; echo $MSG6
return 0
fi
else
echo $MSG7 "[${JAVA_PROGRAM_DIR}java = ${JAVA_IMPL}]" ; echo $MSG4
return 1
fi
}
echo $MSG1
# locate and test the java executable
if [ `uname` = "Linux" ]; then
if ! command -v java &>/dev/null; then
echo $MSG10
if ! look_for_java ; then
exit 1
fi
else
echo $MSG11
if ! check_version ; then
if ! look_for_java ; then
exit 1
fi
fi
fi
else
JAVA_PROGRAM_DIR=""
fi
echo $MSG0
export J2SE_PREEMPTCLOSE=1
${JAVA_PROGRAM_DIR}java -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog -Djava.library.path=. -jar LimeWire.jar
if [ $? -ne 0 ]; then
echo
echo "******************************************************************"
echo "Something went wrong with LimeWire."
echo "Maybe you're using the wrong version of Java?"
echo "(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)"
echo "The version of Java in your PATH is:"
java -version
echo
fi
That is runLime.sh so I still don't know what i need to change? And as a previous post noted, my system has java 1.5 so that shouldn't be a problem. I'm still eager to get this solved, any help would be great, thanks,
Hi, is anyone checking this, cuz i'm anxious to get this fixed, but it seems no one know what to do. Since i did use alien to install it synaptec, won't uninstall it, so how would i uninstall it?, i regenerated the .deb from the .rpm and reinstalled, and i still get this same error. Help me please, it will be appreaceated.!
Didn't understand the language though. As per his last screenshot, create(as root) a file called limewire in /usr/bin and give it executable permission, rename the existing file if present just in case.
Then enter this using a text editor(also as root) into that file
Code:
#!/bin/bash
cd /usr/lib/LimeWire
bash runLime.sh
Now try running limewire from terminal.
Sadly, if it doesn't work, then you may install Frostwire which is a duplicate of Limewire on Debian systems. If its present in any repos, apt-get should find it else google it.
Hi, Thanks for the help, it worked great. I know spanish so the process was very smooth, and easy to fix. Anyone searching for translation let me know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.