Hi all, I have GNU java 1.4.2 installed which Limewire 4.12.11 doesn't consider useful. I installed Sun's jre 1.5.0.11, but in my home directory. The startup scrip for Limewire couldn't handle this location. Hence this patch. I'm sending this patch to codepatch@lists.limewire.org too.
--- runLime.sh 2007-03-13 23:27:04.000000000 +0530 +++ /home/neo/Limewire-clean/runLime.sh 2007-03-14 00:15:29.000000000+0530 @@ -23,6 +23,12 @@
look_for_java() { +# patch to look for java installed in home dir first + JAVA_EXEC_IN_HOME=$(find ~ -name "java") + JAVADIR=`echo $JAVA_EXEC_IN_HOME|sed -n 's/bin/java//p'` + if look_for_javaImpl ; then + return 0 + fi JAVADIR=/usr/lib if look_for_javaImpl ; then return 0 @@ -35,22 +41,24 @@ if look_for_javaImpl ; then return 0 fi + +# try here too + JAVADIR=/usr + 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/" + if [ -x "$JAVADIR/bin/java" ]; then + JAVA_PROGRAM_DIR="$JAVADIR/bin/" echo $MSG2 $JAVA_PROGRAM_DIR if check_version ; then return 0 fi fi - done echo $MSG8 "${JAVADIR}/" $MSG9 ; echo $MSG4 return 1 }