This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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@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

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]