This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ ------ file type not supported by system
- From: Per Bothner <per at bothner dot com>
- To: Guillermo Rodriguez Garcia <guille dot rodriguez at gmail dot com>
- Cc: "classpath at gnu dot org" <classpath at gnu dot org>, "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
- Date: Wed, 03 Sep 2014 10:59:02 -0700
- Subject: Re: GCJ ------ file type not supported by system
- Authentication-results: sourceware.org; auth=none
- References: <B040B27C8A444D98B4F39FA5626D6022 at P5LD2Deluxe> <540034B0 dot 4010701 at redhat dot com> <CABDcavbBDFUcPKPXqL62xKp0iHzLFEGpcQsuRxZzgv=EDQJ8Dg at mail dot gmail dot com> <1409306247 dot 25913 dot 21 dot camel at nirvana dot localdomain> <CABDcavZaV7MtD9tHjzRpUU2zMsnuVoHMer1kUXPdNggAb_7hnA at mail dot gmail dot com> <54043670 dot 4070908 at redhat dot com> <CABDcavZQ76W4sTm3rssD8UTWyCnD95Uo5BKon=8sFhRcNq5prA at mail dot gmail dot com> <1409568429 dot 4242 dot 1 dot camel at nirvana dot localdomain> <CABDcavZBbf_LwXazvY34zm-tig37g-arHvAbEymKEjYL_-JUmQ at mail dot gmail dot com> <54074227 dot 5000104 at redhat dot com> <CABDcavbfNqET9t=ipo2h2m9vfBOQLGuyL4KRqrj4s=q1HjQ4Tg at mail dot gmail dot com>
On 09/03/2014 09:35 AM, Guillermo Rodriguez Garcia wrote:
What would you like me to do? How can I help ?
More useful than updating Classoath per se would be creating
a version of GCJ that uses OpenJDK's javac for compiling to bytecodes,
and OpenJDK classes (or at least mostly so). This is a big project,
but has a chance of being useful and maintained.
There may be licensing issues that should be considered before
charging full steam ahead.
I'm out of the loop, so I don't know if anything like that is happening.
I'd start with switching to using javac. When I'd add/replace whatever
non-core classes that don't wouldn't conflict with GCJ/Classpath core classes.
Maybe this wold be a fork or branch of Classpath, or maybe the mainline - depends
on the changes.
In general, the sanest way to update classpath is to merge in OpenJDK code.
(Again, assuming licensing and other policy issues have been evaluated.)
However, the OpenJDK classes may depend on recent Java language features.
Which is why projects using Classpath should switch to using OpenJDK's javac.
(I don't believe Eclipse's compiler is as solid or complete, though that may be
my bias from having worked with javac engineers. It's probably good enough for
at least the initial stages of merging in OpenJDK classes.)
--
--Per Bothner
per@bothner.com http://per.bothner.com/