Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > FrostWire
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

FrostWire General forum section for FrostWire users; Download "FrostWire Clean version 4" . FrostWire v.5 which only uses bittorrents and no longer uses Gnutella Network is not supported on these forums.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12 (permalink)  
Old March 13th, 2006
Novicius
 
Join Date: March 13th, 2006
Posts: 3
Ulfgar is flying high
Default Well....

That didnt work.... I typed it in a terminal window as root and got this

#!/bin/sh
#
# 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 FrostWire:"
MSG1="Starting FrostWire..."
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. FrostWire 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 FrostWire.jar
if [ $? -ne 0 ]; then
echo
echo "************************************************* *****************"
echo "Something went wrong with FrostWire."
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
[root@localhost user]#


I know my version of java is current because when i type java -version it comes up with

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
Reply With Quote
 


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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
search filters/ syntax dddkkk Help & Support 3 May 5th, 2007 08:01 AM
./runLime.sh: 44: Syntax error: "(" unexpected (expecting "}") Flats General Linux Support 3 January 2nd, 2007 02:20 PM
./runLime.sh: 44: Syntax error: "(" unexpected (expecting "}") cenzo_79 General Linux Support 1 April 12th, 2006 05:34 PM
Search syntax rsenn Open Discussion topics 1 April 5th, 2006 05:03 PM
Precise search syntax Pirx General Gnutella / Gnutella Network Discussion 0 April 12th, 2003 11:24 AM


All times are GMT -7. The time now is 07:41 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.