Thio4linux

- Open Source World -

Hattrick Organizer on Ubuntu

Posted by thio4linux on October 8, 2007

The best hattrick CHPP program now on your Ubuntu!

1- first of all you have to download and unpatch the program:

wget http://www.de-side.com/files/HO.tar.gz
tar xzvf HO.tar.gz

2- then create a script:

gedit hattrick.sh

3- insert this code in hattrick.sh already created:

#!/bin/sh
cd /home/TUONOME/HO
sh HO.sh

4- to run it from shell type:

./hattrick.sh

now you have your HO ready to start!

5 Responses to “Hattrick Organizer on Ubuntu”

  1. oladola said

    Cannot find java … How could I make it works

  2. thio4linux said

    you have to install java on your ubuntu… look here:
    http://www.java.com/en/download/linux_manual.jsp?locale=it&host=www.java.com:80

  3. mendor said

    hi,

    i see this:

    Exception in thread “main” java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
    at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
    at java.awt.Font.tk(libgcj.so.70)
    at java.awt.Font.getPeerFromToolkit(libgcj.so.70)
    at java.awt.Font.(libgcj.so.70)
    at javax.swing.plaf.FontUIResource.(libgcj.so.70)
    at javax.swing.plaf.metal.DefaultMetalTheme.(libgcj.so.70)
    at java.lang.Class.initializeClass(libgcj.so.70)
    at java.lang.Class.initializeClass(libgcj.so.70)
    at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(libgcj.so.70)
    at javax.swing.plaf.metal.MetalLookAndFeel.(libgcj.so.70)
    at javax.swing.UIManager.(libgcj.so.70)
    at java.lang.Class.initializeClass(libgcj.so.70)
    at javax.swing.UIManager.getUI(libgcj.so.70)
    at javax.swing.JPanel.updateUI(libgcj.so.70)
    at javax.swing.JPanel.(libgcj.so.70)
    at javax.swing.JPanel.(libgcj.so.70)
    at de.hattrickorganizer.gui.templates.ImagePanel.(ImagePanel.java:26)
    at de.hattrickorganizer.gui.HOMainFrame.main(HOMainFrame.java:1751)
    at de.hattrickorganizer.HO.main(HO.java:35)
    Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory
    at java.lang.Runtime._load(libgcj.so.70)
    at java.lang.Runtime.loadLibrary(libgcj.so.70)
    at java.lang.System.loadLibrary(libgcj.so.70)
    at gnu.java.awt.peer.gtk.GtkToolkit.(libgcj.so.70)
    at java.lang.Class.initializeClass(libgcj.so.70)
    at java.lang.Class.forName(libgcj.so.70)
    at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
    …18 more
    grep: /home/mendor/Desktop/HO/HO/db/database.properties: No such file or directory
    [: 455: no: unexpected operator
    Database was not relased correctly!
    Probably next time you will have problems starting HO…
    … but you can restore a backup with switches -r or -rd. :-)

    ———————

    java -version

    java version “1.4.2″
    gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)

    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  4. Gabi said

    When I’m typing in a shell window ./hattrick.sh I get the following error message:

    permission denied

    root@Ducati999:/home/paladin/HO# ./hattrick.sh
    bash: ./hattrick.sh: Permission denied

  5. z0n0 said

    Gabi

    do this: chmod 777 hattrick.sh
    and then ./hattrick.sh

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>