LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   LimeWire won't start on F7... (https://www.linuxquestions.org/questions/fedora-35/limewire-wont-start-on-f7-579905/)

sblantipodi 08-26-2007 06:02 AM

LimeWire won't start on F7...
 
Hi,
have you got the same problem?

I cannot start LimeWire in F7 using sh ./runLime.sh

camorri 08-26-2007 06:22 AM

Have you tested your java installation to make sure it works?

If you start it from a konsole, what errors do you receive? Cut and paste them here.

sblantipodi 08-26-2007 06:26 AM

Quote:

Originally Posted by camorri (Post 2871033)
Have you tested your java installation to make sure it works?

If you start it from a konsole, what errors do you receive? Cut and paste them here.

Yes of sure...
Netbeans runs well on my Linux box...

Code:

sblantipodi:~/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()
sblantipodi:~/LimeWire$


Nylex 08-26-2007 06:33 AM

I think the problem is that there are weird ^M characters (though they're invisible) in runLime.sh. If you open the file with a text editor and copy all the contents to a new file and run the new script, it should be OK.

camorri 08-26-2007 08:54 AM

I have to agree with NYLEX, it looks like your runLime.sh file may be messed up. Here are the lines from mine where th e script looks for java, looks like yours is dead at line 24.

Code:

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
}

Note, there is an extra character shown on your post on line 24. ( look_for_javaImpl() )

It might be faster to delete your installation, and re-run the installer.

sblantipodi 08-26-2007 09:41 AM

I cut and paste runLime.sh to delete ^M characters.
Now it seems to be better but:

Code:

sblantipodi:~/LimeWire$ sh ./runLime.sh
Starting LimeWire...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.6.0_02]
Configuring environment...
Loading LimeWire:
Unable to access jarfile LimeWire.jar

******************************************************************
Something went wrong with LimeWire.
Maybe you're using the wrong version of Java?
(LimeWire is tested against and works best with with Sun's JRE, Java 1.5+)
The version of Java in your PATH is:
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

sblantipodi:~/LimeWire$

thanks for your help.

sblantipodi 08-26-2007 02:26 PM

Ok, I solved with this simple command:
dos2unix runLime.sh


All times are GMT -5. The time now is 12:07 PM.