eclipse and gcj
Tom Tromey
tromey@redhat.com
Tue Dec 3 09:13:00 GMT 2002
>>>>> "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
More information about the Java
mailing list