You are not logged in.

#1 2007-02-23 11:29:49

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

[solved] tuxguitar - java: command not found

Hi,

I installed tuxguitar via pacman. When I start it I get this error

/usr/share/TuxGuitar-0.9.1-linux-gtk-x86/tuxguitar: line 27: java: command not found

this is the content of that file, line 27 is the last one

#!/bin/bash
##SCRIPT DIR
DIR_NAME=`dirname "$0"`
DIR_NAME=`cd "$DIR_NAME"; pwd`
cd "${DIR_NAME}"
##JAVA
if [ "${JAVA}" == "" ]; then
        if [ "${JAVA_HOME}" != "" ]; then
                JAVA=${JAVA_HOME}/bin/java
        else
                JAVA=java
        fi
fi
##CLASSPATH
CLASSPATH=$CLASSPATH:./TuxGuitar.jar:lib/swt.jar:lib/itext-1.4.5.jar:./share/
##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
##MAINCLASS
MAINCLASS=org.herac.tuxguitar.gui.TuxGuitar
##JVM ARGUMENTS
VM_ARGS="-Xms128m -Xmx128m"
##LAUNCH
${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2"

the dependencies jre and swt are installed...

Last edited by SiD (2007-02-23 13:23:49)

Offline

#2 2007-02-23 12:26:06

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: [solved] tuxguitar - java: command not found

If jre got installed as a dep together with tuxguitar you first have to source /etc/profile as Java resides in /opt and the PATH variable needs to be refreshed.


1000

Offline

#3 2007-02-23 13:23:20

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: [solved] tuxguitar - java: command not found

yes,

source /etc/profile

did it.
Thanks!

Offline

Board footer

Powered by FluxBB