[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)

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.

Similar Messages

  • Java -version bash: java: command not found

    Hi all.
    I wanna install java on linux (OpenSUSE). When I checked java -version, it shown that :
    java -version
    bash: java: command not found
    Can any solution about it, please!

    Sukirmanster wrote:
    I wanna install java on linux (OpenSUSE). When I checked java -version, it shown that :
    java -version
    bash: java: command not foundNot surprising if you have not installed java yet.
    Can any solution about it, please!If you have installed java, read a unix/linux manual,
    pay particular attention to bash (or any shell) and the role of $PATH.

  • [SOLVED] sudo and "command not found" problems

    Ok, the problem I've got is this: sudo has suddenly started acting real strange. It can't find any programs. For example, if i type
    sudo echo
    It just goes
    sudo: echo: command not found
    And another problem I've got, is that as a regular user, it can't find programs in /sbin, or other "exotic" places. For example it can't find firefox, because it's not in /usr/bin or /bin, but in /opt/mozilla/bin.
    Please, help me!
    Last edited by mrpedroxx (2008-06-14 13:23:49)

    sudo -V outputs this
    Sudo version 1.6.9p15
    $PATH outputs
    bash: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.: No such file or directory
    pacman -Q firefox outputs
    firefox 2.0.0.7-1
    Yeah, maybe I should update it anyway
    And /var/log/errors.log does contain stuff about hard disks, but it's just me mounting my iPod and the Windows partition on my hd

  • [SOLVED] 'sh: nano: command not found' on installation in arch-chroot

    Hello,
    I'm trying to install Arch Linux on a new laptop with a UEFI motherboard, however while following the beginners' guide on the step which requires you to arch-chroot into the /mnt base system to modify the locale.gen file using nano, I receive the following error:
    'sh: nano: command not found'
    I have mounted the partitions, installed the base system and have tried searching online for a solution but nothing seems to work. Also, nano works while outside of arch-root so I believe it is installed on my system.
    I'm almost completely out of ideas on how to fix this, so any help or a point in the right direction would be greatly appreciated.
    - Thanks.
    Last edited by tyor (2013-01-20 12:01:54)

    I had the same problem during my first attempts to install Arch. When you use the command as stated:
    # pacstrap -i /mnt base base-devel
    it seems not all packages were downloaded/installed. Now I know it was my own fault by not selecting the packages properly.
    In the beginnersguide right above the pacstrap command is stated:
    The -i switch can be omitted if you wish to install every package from the base and base-devel groups without prompting.
    So I did, and installed without a problem

  • [solved]-bash: open: command not found

    Hello, I'm following the tutorial here to set up pure-ftpd https://wiki.archlinux.org/index.php/SFTP
    When I get to the step to create a self signed certificate, this happens
    [root@(none) private]# open ssl req -x509 -nodes -newkey rsa:1024 -keyout \
    > /etc/ssl/private/pure-ftpd.pem \
    > -out /etc/ssl/private/pure-ftpd.pem
    -bash: open: command not found
    Which package do I have to install to get the "open" command?
    Last edited by learnerofskills (2012-01-26 06:39:11)

    skunktrader wrote:take out the space between open and ssl
    That worked. I feel really dumb and embarrassed now. Thank you.

  • [SOLVED] rc.d: command not found

    I am in the process of installing xfce. One of the steps is to run:
    rc.d start dbus
    However, when I run this it returns:
    bash: rc.d: command not found
    Am I missing something?
    Last edited by george55 (2011-08-11 04:03:16)

    Inxsible wrote:
    rc.d is not a command. its a location under /etc. your command should be
    sudo /etc/rc.d/dbus start
    $ which rc.d
    /sbin/rc.d
    $pacman -Qo /sbin/rc.d
    /sbin/rc.d is owned by initscripts 2011.07.3-1
    $ rc.d --help
    usage: rc.d <action> <daemon> [daemon] ...
    rc.d list [started|stopped]
    rc.d help
    <daemon> is the name of a script in /etc/rc.d
    <action> can be a start, stop, restart, reload, status, ...
    WARNING: initscripts are free to implement or not the above actions.
    e.g: rc.d list
    rc.d list started
    rc.d help
    rc.d start sshd gpm
    Initscripts update, part 1
    Initscripts update, part 2
    @george55
    If rc.d command doesn't work, check your initscripts version, and check your $PATH.

  • [SOLVED] arch-chroot: Command not found

    Hey,
    I installed Windows 8 alongside Archlinux, so I need to restore my bootloader. I've downloaded the recent image of Arch, made it onto a bootable usb pen drive and booted it without any problems. However, I can't seem to find the arch-chroot binaries (and manually chroot-ing into /mnt after mounting everything fails because bash is not found).
    Am I doing something wrong or is the wiki out of date?
    Last edited by GreenTime (2012-11-01 10:16:56)

    You're doing something wrong.
    Download latest iso and use dd to write it to usb and verify md5 on iso and usb.
    Edit: Normally I roll my own iso with archiso, but to be absolutelly sure on my answer to you, then i've just downloaded latest official iso and tested in a vm, and as expected, arch-chroot is present and working fine.
    Last edited by mhertz (2012-11-01 01:49:59)

  • Java command not found in Bash...

    I know this has to do with the Path variable. Could someone help with the path commands for this? It would be nice to enter these in the Bash profile so they load on boot. I just can't seem to get the syntax correct. e.g.- "JAVA_HOME=/usr/java/jdk.1.3.1......"
    I can't find a search function on this forum so forgive me for asking a question that has probably been asked MANY times...
    Thanks!
    AK

    to add java in your path please do the following.
    Edit your .bash_login file and add and or edit the following:
    export PATH="/opt/java/bin/:....:...:"
    export CLASSPATH=".:...."
    make sure to set your CLASSPATH as well.

  • [SOLVED] bash: strip: command not found

    In which package is the strip command supposed to be? I must have deleted it unadvertedly...
    Thanks in advance.
    Last edited by iosonofabio (2011-06-15 10:28:23)

    [Archer][~]
    pkgfile strip
    core/binutils

  • Java command not working - path problem ?

    Im not really new to Java, but rather new to Linux :=)
    Ive got NetBeans setup and working great on Redhat 7.2 and I can run Java apps from within the IDE...but not from a command line. I get "bash: java: command not found"
    This tells me something is amuk with my path, because obviously the bin folder is not on the path ???
    Help :=)

    also, ive got this in my .bashrc file
    #JDK Home varible
    JDK_HOME=/usr/java/j2sdk1.4.0_01

  • Virtualbox problem: modprobed_db: command not found[SOLVED]

    I'm running arch in virtualbox.
    and when I run # virtualbox, error:
    "VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQtCore.so.4: cannot open shared object file: No such file or directory"
    wiki write: "Note: You may need to update the kernel modules db in order to avoid 'no such file or directory' error when loading vboxdrv. Run: modprobed_db."
    but result:
    "# modprobed_db
    bash: modprobed_db: command not found
    Last edited by lqs (2012-07-27 09:00:44)

    modprobed_db can be found in the AUR. It collects all modules which have ever been loaded on your system. It's very practical if you compile a custom kernel and only want to include the modules you need.
    I think this doesn't solve your problem. Your system is missing the file /usr/lib/libQtCore.so.4 Do you have [testing] enabled? If so, do you also have [community-testing] enabled? I'll need more input to be able to help properly.

  • [solved] yaourt messed up pacman - "pacman: command not found"

    Hi,
    i got some "xxxxxx not found on AUR" messages after doing a "yaourt -Syu --aur" so I began to remove them with "yaourt -Rs xxxxxxx".
    When there was only one left "aqpm2" this is what happened:
    [studio@myhost ~]$ yaourt -Rs aqpm2
    verificando dependências...
    Remover (2): aqpm2-20100615-2  qjson-0.7.1-2
    Tamanho total dos pacotes a serem removidos:   2,93 MB
    Deseja remover estes pacotes? [S/n] s
    (1/2) removendo aqpm2                                                                                                     [##########################################################################] 100%
    (2/2) removendo qjson                                                                                                     [##########################################################################] 100%
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    now pacman is broken:
    [studio@myhost ~]$ pacman
    bash: pacman: comando não encontrado
    [studio@myhost ~]$ yaourt -Syu --aur
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    You are not allowed to launch /usr/bin/pacman with sudo
    Please enter root password
    Senha:
    bash: /usr/bin/pacman: Arquivo ou diretório não encontrado
    ==> WARNING: problem in pkgbuild.sh library
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    ==> Searching for new version on AUR
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    Unable to open file: /etc/pacman.conf
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    [studio@myhost ~]$ sudo pacman -Syu
    sudo: pacman: command not found
    please help
    Last edited by capoeira (2010-10-16 14:33:39)

    capoeira wrote:
    can I use pacman-static from this repro?
    I'm afraid to break system even more
    http://repo.archmobile.org/x86_64/archmobile/
    OK, that gave me a segfault, so
    I downloaded the package and copied the folders to root.
    no pacman works but gaves me this errors afterwards:
    pacman-3.4.1-1: description file is missing
    pacman-3.4.1-1: dependency file is missing
    pacman-3.4.1-1: file list is missing
    how do I solve this?
    BTW: should I make a bug-report??
    EDIT: any package I try to instal I get this error:
    erro: não foi possível abrir o arquivo /var/lib/pacman/local/pacman-3.4.1-1/depends: Arquivo ou diretório não encontrado
    (it's in portuguese but i think its understandable)
    Last edited by capoeira (2010-10-15 22:08:36)

  • [SOLVED] startxfce4 command not found?

    Greetings,
    today I finally got some courage and decided to give archlinux a try on my laptop since I grew tired of ubuntu. Instalation was going fine until I decided to install xfce4. Like the wiki says, I took care of installing all of the necessary X packages, and even tried it successfully with the basic twm  interface thing. However, after installing the xfce4 package through pacman, when I try to run execute startxfce4 it just gives me a "command not found" error. I've went to /usr/bin and in fact startxfce4 is not there. Any ideas what might be wrong?
    EDIT: Reason for all the problems was that I forgot to actually update the system running the "pacman -Syu". I updated on the second install and when I executed xfce4 all the conflicts dissapeared.
    Last edited by apokaliptik (2012-01-09 21:34:02)

    https://wiki.archlinux.org/index.php/Xfce4#Installation
    wiki wrote:Pacman will ask you to select the packages to install, but you probably want to get them all by simply pressing Enter.
    [karol@black ~]$ pacman -S xfce4
    :: There are 16 members in group xfce4:
    :: Repository extra
    1) exo 2) garcon 3) gtk-xfce-engine 4) terminal 5) thunar 6) tumbler
    7) xfce-utils 8) xfce4-appfinder 9) xfce4-mixer 10) xfce4-panel
    11) xfce4-session 12) xfce4-settings 13) xfconf 14) xfdesktop 15) xfwm4
    16) xfwm4-themes
    Enter a selection (default=all):
    xfce-utils is the 7th member of xfce4 group; it should be downloaded and installed. Don't know why it wasn't installed in your case.
    Please remember to mark the thread as solved as per our forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-)

  • [solved] qdbus: command not found = Netbeans can't connect to KWallet

    I had a problem with Netbeans using its fallback keyring instead of KWallet.
    My research showed that this happened because Netbeans wasn't able to use qdbus
    exception thrown while invoking the command "[qdbus, org.kde.kwalletd, /modules/kwalletd, org.kde.KWallet.isEnabled]"
    I tried to run qdbus with
    qdbus org.kde.kwin /KWin supportInformation
    Same outcome; qdbus: command not found.
    Searching for qdbus, I found it in /usr/lib/qt4/bin which obviously isn't part of $PATH.
    I "solved" the issue by creating a softlink in /usr/bin/
    cd /usr/bin && sudo ln -s /usr/lib/qt4/bin/qdbus qdbus
    It works, both the KWin command as well as Netbean's KWallet integration, but is that how it should be done?
    Haven't I rather a package missing, like qt5 or something?
    Or is my standard "throw softlinks at the problem"-procedure alright here?
    Last edited by Caldazar (2014-01-25 20:55:02)

    Thanks! That's better although it doesn't work out of the box either.
    qtchooser apparently sends the applications to '/usr/lib/qt/bin/qdbus' which doesn't exist, Arch uses /usr/lib/qt4' instead
    qdbus: could not exec '/usr/lib/qt/bin/qdbus': No such file or directory
    So I had to link those too.
    sudo ln -s /usr/lib/qt4 /usr/lib/qt
    I don't know whether that's a problem with qtchooser or rather with some of my environment variables being wrong.
    But anyways, linking the directories 'qt' to 'qt4' makes a whole lot more sense to me than micromanaging the paths of single binaries or libraries.
    P.S. @ChemBro
    Yes, using qdbus-qt4 seems to work with commands I have control over but telling applications like Netbeans to use that is a different beast, at least from a user-perspective.
    Maybe the packagers can do something about that, but I don't know.
    Last edited by Caldazar (2014-01-21 15:03:39)

  • [solved] hostname command not found

    Some months ago i've got this problem:
    startx: line 127 hostname command not found
    that i solved with
    pacman -S net-tools
    Today the problem is here again O.o
    I've reinstalled net-tools and coreutils but nothing
    Last edited by polslinux (2011-08-26 11:31:26)

    http://mailman.archlinux.org/pipermail/ … 21397.html
    Edit: inetutils from [testing] http://www.archlinux.org/packages/testi … inetutils/ have the hostname binary and it was removed from the [testing] net-tools http://www.archlinux.org/packages/testi … net-tools/
    Packages in [core] still work the old way: net-tools provides hostname.
    Last edited by karol (2011-08-26 10:29:33)

Maybe you are looking for

  • Ipod classic 30gb not recognized by windows 7

    i have a ipod classic and i just got a dell with windows 7 but my ipod wont show up. it just charging. i just downloaded itunes 9.2 and it picked up all my music on my computer but my ipod just charges when i plug it in. Can anyone help me

  • Robot class in Windows Vista

    Hello, It seems like there are problems with the java Robot class in Windows Vista. Did anyone encounter them? Thanks

  • Best practice on creating a managable questionnaire/survey with JSF

    Hello all, As a part of a bigger project we need to build a questionnaire with managable questions. This means that clients can add/modify/delete questions as they wish. The database side is figured out and designed, but what im really thinking is ho

  • Acrobat 9.0 cd need 9.4 patches

    Hi, I have several PCs with Adobe 9.3 and 9.4 Standard and Professional installed.  I will be installing Windows 7 Pro on these XP PCs shortly so I will need to reinstall the appropriate version of Adobe on each PC.  The program is I only have 9.0 CD

  • How much cpu does itunes require to import a cd?

    istat pro reported 98% cpu used by itunes in importing a cd! this cant be normal? this was in the 'processes' section. in the cpu section it was saying about 50%. same reported in activity monitor. .... neither of which sound normal to me? btw the cd