View previous topic - View next topic |
Author |
Message |
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: Wed Oct 31, 2007 5:01 pm Post subject: Sonnheim Trouble |
[quote] |
|
Hajo, I'm having trouble getting sonnheim to run.
I downloaded sonnheim_client_72-0_1_5_0.zip and tried to run the bash script.
Code: |
$ ./sonnheim_client.sh
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.<init>(libgcj.so.70)
at javax.swing.plaf.FontUIResource.<init>(libgcj.so.70)
at javax.swing.plaf.metal.DefaultMetalTheme.<clinit>(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.<init>(libgcj.so.70)
at javax.swing.UIManager.<clinit>(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at sonnheim.client.ClientCore.main(ClientCore.java:745)
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.<clinit>(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)
...12 more
|
I'm not too familiar with getting java programs to run.
Could you shed some light on this? _________________ Principal Software Architect
Rambling Indie Games, LLC
See my professional portfolio
|
|
Back to top |
|
|
cowgod Wandering Minstrel
Joined: 22 Nov 2005 Posts: 114 Location: Pittsburgh, USA
|
Posted: Wed Oct 31, 2007 5:47 pm Post subject: |
[quote] |
|
It sounds like the program you downloaded is missing some files. They sound like files are missing.
I don't have Linux to run the .sh file on, so I can't test out the .sh file. I did, however, run it from the .bat file. I got some message asking for the server IP address and shut it down. I assume it's working right and I just need a server running somewhere.
From reading the .sh file, I think the working directory has to be the same as the directory the files are in. Switch to the sonnheim client folder and then run the .sh file if you're running it from another directory.
|
|
Back to top |
|
|
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: Wed Oct 31, 2007 5:51 pm Post subject: |
[quote] |
|
Okay, I found out that I needed to install Sun's Java instead of the GNU Java that ships with my OS (xubuntu).
Once I installed Sun's it ran with these results:
Code: |
$ ./sonnheim_client.sh javax.swing.UnsupportedLookAndFeelException: [The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel] not supported on this platform
at javax.swing.UIManager.setLookAndFeel(UIManager.java:524)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:581)
at sonnheim.client.ClientCore.main(ClientCore.java:745)
User home: /home/mpython/
ImageTranscoder: range table loaded.
ImageTranscoder: range table loaded.
Connecting to localhost:1791
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:179)
at sonnheim.client.ClientCore.<init>(ClientCore.java:663)
at sonnheim.client.ClientCore.main(ClientCore.java:750)
|
I'm faced with a prompt window asking for the server IP.
What is the IP that I need to connect to? _________________ Principal Software Architect
Rambling Indie Games, LLC
See my professional portfolio
|
|
Back to top |
|
|
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: Wed Oct 31, 2007 5:57 pm Post subject: |
[quote] |
|
I read the readme.txt and it says to start the server, create a character, then start the client.
I haven't got the server yet, but I will.
I made a bash script for the character editor
Code: |
#!/bin/sh
java -DProductive=true -classpath code\sonnheim.jar sonnheim.client.tools.CharacterEditor
|
and I attempted to run it...
Code: |
2$ ./sonnheim_character_editor.sh
Exception in thread "main" java.lang.NoClassDefFoundError: sonnheim/client/tools/CharacterEditor
|
What am I missing here? _________________ Principal Software Architect
Rambling Indie Games, LLC
See my professional portfolio
|
|
Back to top |
|
|
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
|
Back to top |
|
|
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
|
Back to top |
|
|
Hajo Demon Hunter
Joined: 30 Sep 2003 Posts: 779 Location: Between chair and keyboard.
|
Posted: Fri Nov 02, 2007 10:47 am Post subject: |
[quote] |
|
Wow, you faced quite some obstacles there. Good to see you got it running :)
Sorry for the late reply, I've been away for a day.
In the help forum on Sourceforge the question came up, too, how to provide and organize the start scripts for different OSes. I still feel uncertain about that. Maybe having "windows" and "unix" subdirectories and moving all files there could help.
Or some kind of Java-based launchbox, so only one start script is needed. Or your script :) Or maybe even something like Webstart could be used to get the whole system downloaded and installed.
It's a bit convoluted as it it. Good to see you figured it all out.
Once there is an official server, you don't need to start one on your own. And then you actually could meet some other people online :)
How's the performance under Linux? I see your system uses bigger/wider fonts, and many texts became truncated. That's something I should look into, I think.
There is still a lot to do.
|
|
Back to top |
|
|
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
|
Back to top |
|
|