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!

10 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

  6. Maf said

    Hello! I’ve got some problems with starting it. I am new at ubuntu and it’s very hard for me to come along with it, though i like the system very much. I’ve followed the mentioned points and had the same problem like gabi. This is what the shell says when i try to start with ./hattrick.sh
    cd: 2: can’t cd to /home/TUONOME/HO
    sh: Can’t open HO.sh

    Thanks for your help!

    • dthporro said

      had the same problem… look: TUONOME means YOURNAME, just change that adress for the real adress of HO.sh file, in your script.
      Just do gedit hattrick.sh again’ and change the adress🙂

  7. adel ghaemi said

    Hi

    i have an error on connection (proxy is set):

    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.hattrick.org/Community/CHPP/System/chppxml.axd?file=servers
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at net.sf.gham.core.control.download.connection.HatConnection.connection(Unknown Source)
    at net.sf.gham.core.control.download.connection.HatConnection.login(Unknown Source)
    at net.sf.gham.core.control.download.DownloadManager.getConnection(Unknown Source)
    at net.sf.gham.core.control.download.DownloadDialog.doWork(Unknown Source)
    at net.sf.gham.core.control.download.DownloadDialog.okPressed(Unknown Source)
    at net.sf.gham.swing.DialogCentered$3$1.executeInBackground(Unknown Source)
    at net.sf.gham.swing.DialogCentered$3$1.executeInBackground(Unknown Source)
    at net.sf.gham.swing.util.GlassPaneSwingWorker.doInBackground(Unknown Source)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

  8. buy.comtoday’s deals,what’s shakin,weekly deals,free shipping deals,best bargains…

    […]Hattrick Organizer on Ubuntu « Thio4linux[…]…

  9. Heya just wanted to give you a brief heads up and let
    you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue.
    I’ve tried it in two different web browsers and both show the same results.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: