Possibly being stupid, but having trouble running on Ubuntu :(

classic Classic list List threaded Threaded
2 messages Options
Rob
Reply | Threaded
Open this post in threaded view
|

Possibly being stupid, but having trouble running on Ubuntu :(

Rob
rob@aichi:~/Games/Towns$ ./towns.sh
bash: ./towns.sh: /bin/sh^M: bad interpreter: No such file or directory

[Presumably caused by the line ending issue... but then:]

rob@aichi:~/Games/Towns$ sh towns.sh
Exception in thread "main" java.lang.NoClassDefFoundError: xaos/Towns
Caused by: java.lang.ClassNotFoundException: xaos.Towns
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
. Program will exit.ain class: xaos.Towns

Don't know enough about Java to know if I'm being a noob or if there's an issue...
Reply | Threaded
Open this post in threaded view
|

Re: Possibly being stupid, but having trouble running on Ubuntu :(

supermalparit
Administrator
Hi Rob,

it exists a problem with the Linux & Mac launchers.

To run the game you must go to the game folder and execute this:
java -cp .:./lib/lwjgl.jar:./lib/lwjgl_util.jar:./lib/slick-util.jar:./xaos.jar -Djava.library.path=./lib/native/ -Dsun.java2d.opengl=false xaos.Towns

Hope this helps and sorry for the inconvenience.

Regards

Xavi Canal