This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: eclipse and gcj
- From: Tom Tromey <tromey at redhat dot com>
- To: Joerg Brunsmann <joerg_brunsmann at yahoo dot de>
- Cc: java at gcc dot gnu dot org
- Date: 03 Dec 2002 10:11:10 -0700
- Subject: Re: eclipse and gcj
- References: <20021203162212.47533.qmail@web20506.mail.yahoo.com>
- Reply-to: tromey at redhat dot com
>>>>> "Joerg" == Joerg Brunsmann <joerg_brunsmann@yahoo.de> writes:
Joerg> Can you provide a makefile or shell script for compiling all
Joerg> the eclipse jar files?
I think I deleted the script I had :-(. It was pretty dumb, anyway.
Basically it just ran through the jar files and tried compiling them
one by one. I made the list of jar files with `find'.
>> We're missing some packages that parts of Eclipse need: javax.net
>> (including javax.net.ssl), javax.management, javax.mail. Ant,
Joerg> Doesn't classpathX contain these packages?
It has javax.mail. Good point, though -- I didn't check here when I
was working on this.
All these packages come in because Eclipse includes a lot of third
party Java software. For instance it includes Tomcat; help in Eclipse
works by starting an internal web browser and then telling your
browser to talk to it.
>> As I recall the problems start because Eclipse relies on the
>> ProtectionDomain for a class being set to something sensible; it
>> uses the CodeSource in the domain to look for other files it needs
>> at runtime.
Joerg> Is it impossible to set this information in gcj-compiled classes?
No, but someone needs to look at it and figure out exactly how it
should work. Probably looking at it in conjunction with Eclipse would
be smart.
>> In the end Andrew wrote a patch to let us handle ClassLoaders
>> properly.
Joerg> Are these patches already cheched in?
Andrew put them in today. I think I have some follow up patches for
this but I have to take another look.
Joerg> Do you have a start script with classpath setting or something
Joerg> else so that others can try running eclipse with gij?
Just start eclipse with `-vm gij'. The `eclipse' program is really
just a small launcher that works out what to do.
Joerg> Trying to compile the eclipse source code could be done by
Joerg> using the existing ant build scripts from eclipse and setting
Joerg> the 'build.compiler' property to 'gcj'. Is this worth trying?
Yes.
Tom