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]

Re: YANQ: Yet Another Newbie Question


>>>>> "Rich" == Rich Hampton <rhampton@j2llc.com> writes:

Rich> We have a project that we are trying to recompile with gcj that
Rich> makes use of javax.comm.  I put the javax.comm classes from the
Rich> Sun jdk into the classpath, thinking that I could compile this
Rich> stuff in.  All I got was a bunch of 'undefined references' with
Rich> respect to my calls to javax classes.  I noticed that there's a
Rich> mostly empty javax tree in the gcj source tree.  How is anyone
Rich> else doing it?  Am I missing something elementary?  Can the
Rich> javax.comm classes be built into libgcj?

You might be able to compile the Sun javax.comm classes.  You would do
this by compiling each .class file separately and then making a `.so'
by linking the results.  Then you would link this .so into your final
application.

This might or might not work.  I don't usually try stuff like this.

If the Sun code has native methods then make sure to compile with
`-fjni'.

There might be a free version of javax.comm around.  I have never
looked.  There isn't one in libgcj, as you noticed.  I don't think
anybody is working on it either.

If there is a free one, and you try it, and gcj can't compile it, then
we would be very interested in whatever bugs you find.  I think it is
important that gcj be able to compile free Java applications.

Tom


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