Progress towards game applet/application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm involved in a game project which among other clients has a Java applet 
which can also run as an application.
My system is a powerpc-unknown-linux-gnu (Debian/unstable) and I've been using 
Classpath-based VMs for several months for Java development. Yet the applet, 
as it uses AWT and Swing, posed some problems.

In previous months, I was glad enough that it compiled with jikes or gcj, even 
though some Java 1.5 features had to be converted back (e.g. enums). But it 
never ran, as the Gtk+ peering was still being developed.

Now with classpath-0.9.1, the application starts up and displays its text in 
the status bar, but the main content of a window, which uses AWT's 
Graphics2D, it not shown. Instead, an exception is raised:

Exception during event dispatch:
java.lang.ClassCastException: can't cast `gnu/java/awt/peer/gtk/GdkGraphics' 
to `java/awt/Graphics2D

Is Graphics2D still incomplete? I had a quick look at the source and it seems 
to exist for a long time already.
Also, is this a Gtk+ specific problem? I'd like to try out the Qt peering, but 
don't know how.

When trying to use gij-4.1 instead:

** ERROR **: 
file ../../../../../../../src/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: 
line 264 (begin_drawing_operation): assertion failed: (cairo_status (gr->cr) 
== CAIRO_STATUS_SUCCESS)
aborting...

(Cairo is installed with version 1.0.4.)

I feel like I'm one centimetre from not having to log into a box with JRE-1.4 
anymore to test the application.
The applet variant has good chances of being spread and I'd like to claim that 
it runs on free Java implementations.
Please give me some pointers on where to look or possible modifications to the 
VM or classpath installation.

In case someone feels like this should be added to his/her personal agenda of 
pushing free java, here's the link to the software.
http://live.ggzgamingzone.org/ggz-java-client.jar
svn co svn://svn.ggzgamingzone.org/svn/trunk/java

Josef


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux