Compiling Netbeans with GCJ?

Dr Andrew John Hughes ahughes@redhat.com
Wed May 18 19:37:00 GMT 2011


On 19:26 Wed 18 May     , Andrew Haley wrote:
> On 05/18/2011 07:20 PM, Sean Robert McGuffee wrote:
> > Is the Classpath library that gcj uses something that could be updated to
> > have everything Netbeans needs? Netbeans has grown on me in functionality.
> > It's just that it uses like 2 gigs of memory and is often very slow when
> > many files are open. I imagine if there ever were a case for gcj's
> > existence, a non-interpreted version of Netbeans might be it.
> 
> Please don't top-post on the gcc lists.
> 
> Sure, Classpath could be updated to have everything Netbeans needs,
> but it might be a multi-year task; I just don't know.  I also don't
> know if a gcj-compiled version of Netbeans might really be
> faster/smaller than running on OpenJDK.  Probably not.
> 

As a warning, NetBeans is so untested with anything but the Oracle-produced JDK binaries
that it doesn't even seem to play well with OpenJDK:

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=681
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=691

which is supposed to be mostly the same code.

The first thing to try is to see if it will run with a Classpath-based VM such as gij,
JamVM or CACAO.  It'll be slow, but that will tell you what kind of issues you're going
to hit.

As Andrew implies though, not for the faint-hearted.
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: F5862A37 (https://keys.indymedia.org/)
Fingerprint = EA30 D855 D50F 90CD F54D  0698 0713 C3ED F586 2A37



More information about the Java mailing list