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]
Other format: [Raw text]

Re: eclipse and gcj


>>>>> "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


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