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

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

 



Hi,

On Wed, 2006-05-24 at 16:05 -0700, David Daney wrote:
> Michael Mohr wrote:
> > On Wed, 24 May 2006 10:26:05 -0700
> > David Daney <ddaney@xxxxxxxxxx> 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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://developer.classpath.org/pipermail/classpath/attachments/20060529/2692594a/attachment.pgp

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

  Powered by Linux