You are not logged in.

#1 2009-02-07 14:03:36

Alfred456654
Member
Registered: 2008-09-15
Posts: 15

[Problem solved] tuxguitar doesn't start

Hello everyone !
I have just installed tuxguitar :

community/tuxguitar 1.0-5
   multitrack guitar tablature editor and player

I have consulted the wiki, searched a topic concerning it on several forums, but I didn't find anything, so I created this topic.
Here's my problem : this is when I want to start the app :

$ tuxguitar
/usr/share/tuxguitar/tuxguitar: line 36: java: command not found

Here is the content of the file /usr/share/tuxguitar/tuxguitar :

#!/bin/sh
##SCRIPT DIR
DIR_NAME=`dirname "$0"`
DIR_NAME=`cd "$DIR_NAME"; pwd`
cd "${DIR_NAME}"
##JAVA
if [ -z $JAVA ]; then
    JAVA=${JAVA_HOME}/bin/java
    [ ! -f ${JAVA} ] && JAVA=/usr/bin/java
    [ ! -f ${JAVA} ] && JAVA=java
fi
##MOZILLA_FIVE_HOME
if [ -z $MOZILLA_FIVE_HOME ]; then
    MOZILLA_FIVE_HOME=/usr/lib/firefox
    [ ! -d ${MOZILLA_FIVE_HOME} ] && MOZILLA_FIVE_HOME=/usr/lib/mozilla
    [ ! -d ${MOZILLA_FIVE_HOME} ] && MOZILLA_FIVE_HOME=/usr/lib/iceweasel
fi
##LIBRARY_PATH
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:lib/
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/jni
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}
##CLASSPATH
CLASSPATH=$CLASSPATH:./tuxguitar.jar:lib/swt.jar:lib/itext.jar:share/
##MAINCLASS
MAINCLASS=org.herac.tuxguitar.gui.TGMain
##JVM ARGUMENTS
VM_ARGS="-Xms128m -Xmx128m"
##EXPORT VARS
export CLASSPATH
export LD_LIBRARY_PATH
export MOZILLA_FIVE_HOME
##LAUNCH
${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Dtuxguitar.share.path="share/" -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2"

Line 36 is the last one :

${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Dtuxguitar.share.path="share/" -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2"

So I don't know what to do...

Thanks for your help
Regards
Alfred456654

Last edited by Alfred456654 (2009-02-07 14:42:29)

Offline

#2 2009-02-07 14:31:25

vertana
Member
Registered: 2009-01-31
Posts: 26

Re: [Problem solved] tuxguitar doesn't start

THe problem is that the program is not finding your JAVA program. It's saying that the command (The binary) for Java cannot be found and it is searching for it in these lines

##JAVA
if [ -z $JAVA ]; then
    JAVA=${JAVA_HOME}/bin/java
    [ ! -f ${JAVA} ] && JAVA=/usr/bin/java
    [ ! -f ${JAVA} ] && JAVA=java

I have Java installed from the repositories on mine (so default location for Arch Linux) and it is in /opt/java/jre/bin. You might  want to try replacing on of the locations above with the location I provided (or wherever your Java might be). And if you do not have Java installed at all just look here: http://wiki.archlinux.org/index.php/Java

Offline

#3 2009-02-07 14:38:49

vertana
Member
Registered: 2009-01-31
Posts: 26

Re: [Problem solved] tuxguitar doesn't start

I apologize, without realizing it, I had a different Java package installed than the one stated above. It looks like all you need to do is run the command pacman -S openjdk6 and you should be fine. It will be installed to /usr/bin/java and that will meet the needs of that script above.

Offline

#4 2009-02-07 14:41:05

Alfred456654
Member
Registered: 2008-09-15
Posts: 15

Re: [Problem solved] tuxguitar doesn't start

Thank you very much for answering so fast. Actually I'm replacing jre by openjdk6 at the moment, then I hope that java will be found in $PATH ^^

I'll let you know if it works smile

Offline

#5 2009-02-07 14:42:08

Alfred456654
Member
Registered: 2008-09-15
Posts: 15

Re: [Problem solved] tuxguitar doesn't start

It works ! Thank you very much for your help !

Offline

Board footer

Powered by FluxBB