serial comm. with rxtx, GPSExplorer, and GCJ -- runtime exception

Mark Wielaard mark@klomp.org
Mon May 29 10:25:00 GMT 2006


Hi,
On Wed, 2006年05月24日 at 16:05 -0700, David Daney wrote:
> Michael Mohr wrote:
> > On 2006年5月24日 10:26:05 -0700
> > David Daney <ddaney@avtrex.com> wrote:
> >>Michael Mohr wrote:
> >>>I'm currently attempting to use GCC 4.1's gcj to compile a medium-sized (6000-line) java application. Unfortunately, it requires raw access to serial ports, as implemented by RXTX. It appears that RXTX has already been modified to compile using CNI; however, the port appears to be in early alpha stage.
> >>>
> >>>I am able to compile RXTX (mostly) without complaint. I am also able to compile my application -- GPSExplorer -- with no warnings or errors using GCC 4.1. However, it exits when run with the following exception:
> >>>
> >>>Exception in thread "main" java.lang.UnsupportedOperationException
> >>> at gnu.java.awt.peer.gtk.GdkGraphicsEnvironment.getAllFonts (lib-gnu-java-awt-peer-gtk.so)
> >>> at GPSExplorer.<init> (GPSExplorer)
> >>> at GPSExplorer.main (GPSExplorer)
> >>
> >>Looks like GraphicsEnvironment.getAllFonts() is not supported by your 
> >>libgcj.
> > 
> > Okay. Is there a person who I could contact that is working on related classes? I'd be happy to lend a hand, at least in regards to implementing functions missing from my own application.
>> The classpath project is the source of the culpable code. See 
> http://www.gnu.org/software/classpath/

I added a bug report for this:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27792
Meanwhile could you try if just returning an empty array from that
method helps you for now? It is probably more friendly to just claim we
don't support any fonts then throwing an exception.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java/attachments/20060529/2692594a/attachment.sig>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /