LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-20-2007, 06:50 PM   #1
mitchell7man
Member
 
Registered: Jan 2007
Location: Draper, UT
Distribution: Ubuntu, Windows 10, OSX
Posts: 461

Rep: Reputation: 31
Question Limewire... need to uninstall or upgrade? Help?


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.
 
Old 03-20-2007, 07:06 PM   #2
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Try this command and check which Java version are you using
Code:
sudo update-alternatives --config java
Note: If it gives an error about update-alternatives then precede it with /sbin
 
Old 03-20-2007, 07:12 PM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally Posted by mitchell7man
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:

http://ubuntuguide.org/wiki/Ubuntu_E...owser_Plug-ins

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.

Good luck!
 
Old 03-20-2007, 07:41 PM   #4
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Why not just use Frostwire?

IGF
 
Old 03-20-2007, 08:07 PM   #5
mitchell7man
Member
 
Registered: Jan 2007
Location: Draper, UT
Distribution: Ubuntu, Windows 10, OSX
Posts: 461

Original Poster
Rep: Reputation: 31
shrikant.odugoudar, this is what returns -
Quote:
d:~$ sudo update-alternatives --config java

There are 2 alternatives which provide `java'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/gij-wrapper-4.1
*+ 2 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

Press enter to keep the default[*], or type selection number:
that shows which java i am using, and yes it is sun. Does anyone know how i should go about uninstalling limewire, so that i an install it as
Quote:
Mega Man X
suggests?
 
Old 03-20-2007, 08:24 PM   #6
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Before removing Limewire, try running it from a terminal(console) and post the error messages(if any) here.

If I may guess, there is nothing wrong in what you have done. I've used the same procedure a year back on my Debian system. It worked fine.

Edit: Just type limewire in terminal to run it.

Last edited by Hitboxx; 03-20-2007 at 08:25 PM.
 
Old 03-20-2007, 08:43 PM   #7
mitchell7man
Member
 
Registered: Jan 2007
Location: Draper, UT
Distribution: Ubuntu, Windows 10, OSX
Posts: 461

Original Poster
Rep: Reputation: 31
Quote:
mitchell7man@mitchell7man-d:~$ limewire
runLime.sh: 44: Syntax error: "(" unexpected (expecting "}")
If this isn't what you wanted me to do, please let me know.
 
Old 03-21-2007, 01:22 PM   #8
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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.
 
Old 03-21-2007, 05:31 PM   #9
mitchell7man
Member
 
Registered: Jan 2007
Location: Draper, UT
Distribution: Ubuntu, Windows 10, OSX
Posts: 461

Original Poster
Rep: Reputation: 31
Quote:
#!/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,
 
Old 03-25-2007, 10:01 PM   #10
mitchell7man
Member
 
Registered: Jan 2007
Location: Draper, UT
Distribution: Ubuntu, Windows 10, OSX
Posts: 461

Original Poster
Rep: Reputation: 31
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.!
 
Old 03-25-2007, 10:26 PM   #11
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Ok mitchell googling your problem returned this pagehttp://danielgpl.blogspot.com/2007/0...-en-linux.html

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.

This is as far as i can help.
 
Old 03-25-2007, 11:08 PM   #12
mitchell7man
Member
 
Registered: Jan 2007
Location: Draper, UT
Distribution: Ubuntu, Windows 10, OSX
Posts: 461

Original Poster
Rep: Reputation: 31
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.
 
  


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
Uninstall LimeWire jerzeejerome Linux - Desktop 4 03-21-2007 06:07 PM
Uninstall/Upgrade Phyton 2.2.3 poeta_boy Linux - Newbie 2 01-25-2006 05:23 PM
Install/Uninstall LimeWire...PATH...JRE joe6pack Linux - Software 7 03-07-2005 06:30 PM
Compile uninstall and upgrade kernel question l0f33t Linux - Newbie 4 08-12-2003 01:42 AM
Upgrade to Redhat 7.2 uninstall/installation penguinhunter Linux - Software 3 11-15-2001 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:22 AM.

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