InstallingInLinux
Ubuntu
Under Ubuntu 8 (Hardy Heron), try the following:
sudo aptitude install sun-java6-bin sun-java6-jre
Follow the prompts and accept the license to install the Sun Java distribution. Stendhal won't work with the GNU Java Compiler (GCJ), which is the stock Java installed with Heron. After Sun-Java is installed, then run sudo update-alternatives --all and select the Sun java tools where appropriate. Afterward, you should be able to start stendhal with java -jar stendhal-x.xx.jar