Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I'm running DSL on an old P1 laptop. After some effort I have now got Java working on the machine - Accessed by Firefox ok. EV queries return correct ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    15

    Freecast script can't find Java

    Hi

    I'm running DSL on an old P1 laptop. After some effort I have now got Java working on the machine - Accessed by Firefox ok. EV queries return correct results, but the script to launch Freecast Tracker keeps returning 0 value for Java and defaults to message that prog needs java ... to run => exit

    JAVA_CMD=java
    [ -n "$JAVA_HOME" ] && JAVA_CMD=$JAVA_HOME/bin/java

    $JAVA_CMD -version 2>&1 | egrep '(java version "1.[45]|java full version "kaffe=1.[45])' > /dev/null
    if [ $? !=0 ]: then
    echo "A jdk 1.4 is needed to run freecast-tracker. Check your JAVA_HOME variable." >&2
    exit 1
    fi

    exec ..............................

    I have tried a few changes - $JAVA_HOME is already /home/dsl/jdk.../bin/java so I removed /bin/java from line 2 - no change.

    java -version doesn't include ( ) around the return java version "1.5.0_17" so I removed those brackets from the script - no change, program still exits with message.

    I'm no great scripter so it's hard for me to say why these few lines aren't returning the java version to the script and allowing it to continue.

    Support from Freecast.org appears no longer functional (e-mails returned undelivered), although the website exists and downloads continue to function. There is no forum.

    Can anybody see and explain why this is not working correctly?

    Thanks for any help anyone can give

    J

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    15
    Ok, twigged this one, in line 3 - (java version "1.[45]ˇjava ................

    Need spaces around the pipe - (java version "1.[45] ˇ java ................

    Also confirmed that line 2 should be =$JAVA_HOME i.e. excluding the /bin/java

    Now left with an error (from earlier in the script);

    readlink: ./freecast-tracker: Invalid argument

    Not sure how this is being perpetrated :O

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...