[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Eclipse 3.0 on GCJ



Hi Jerry,

On Sun, 2005-01-30 at 00:01 -0600, Jerry Haltom wrote: 
> I have revamped my Eclipse 3.0 packages to build and run properly on
> gcj/gij. It still runs on other VMs. When run using gij however, it run
> using native libraries. It's fast. Give it a go.
> 
> I have uploaded Eclipse 3.0 to mentors.debian.net. It requires the
> gcj-4.0 which is currently in experimental.
> 
> Please post all of your results here.

This is very, very cool!

I created a chroot unstable/experimental environment using debootstrap
to try and compile it. I have a list of little issues. But you have
probably fixed most of these already since we talked already about some
things on irc (thanks again for the walkthrough). But I wanted to
present a complete list for others that want to try to build this from
source.

Happily working on some projects now with it.
Thanks for creating this package!

Cheers,

Mark

----

Dependencies missing:

apt-get install libtomcat4-java liblucene-java

Note that these and some other packages come from contrib:
ant, libxalan2-java, libbcel-java, libmx4j-java,
libcommons-modeler-java, liblucene-java, libtomcat4-java

xalan2.jar xercesImpl.jar xml-apis.jar xmlParserAPIs.jar should not be
necessary soon when GNU JAXP is merged from GNU Classpath into libgcj.
But the others need be be examined to determine why they aren't yet in
main.


Some issues while building:


     [javac]     import com.jcraft.jsch.*;
     [javac]            ^^^
     [javac] The import com cannot be resolved

- Solved by apt-get --build source libjsch-java (from mentors)
  Note that you have to change the Depends: line to mention kaffe, not
  java2-runtime. And dpkg --install libjsch-java_0.1.19-1_all.deb


     [javac]     import junit.framework.AssertionFailedEr
     [javac] ror;
     [javac]            ^^^^^
     [javac] The import junit cannot be resolved

- Solved by apt-get install junit


        BUILD FAILED
        /root/eclipse-3.0.1/source-tree/build.xml:56: The following
        error occurred while executing this line:
        /root/eclipse-3.0.1/source-tree/assemble.org.eclipse.sdk.linux.gtk.x86.xml:320: Execute failed: java.io.IOException: java.io.IOException: No such file or directory
        
- Solved by apt-get install zip

        
        # Our glorious icon!
        cd debian/addons && \
        uudecode eclipse.png.uu && \
        mv eclipse.png /root/eclipse-3.0.1/build-tree/eclipse.png
        /bin/sh: uudecode: command not found
        make: *** [install-indep-stamp] Error 127
        
- Solved by apt-get install sharutils


Some issues while running:

  Creating new JDT projects give nasty errors dialogs.

- Solved by adding removing the resources.jar.so from:
  /usr/lib/eclipse/plugins/org.eclipse.core.resources_3.0.1/resources.jar.so
  (This is also removed by the Fedora package, seems this one jar gets
   miscompiled. But if the .so isn't available gij/gcj will fall back to
   the .jar file and all is fine - even though a little bit slower.)


  It doesn't seem to recognize the gij/gcj4 installation as jre.

- Solved by pointing the JRE Preferences dialog to /usr/lib/kaffe which
  is recognized as valid JRE by eclipse. (This does mean that programs
  you write under Eclipse get executed and compiled against the kaffe
  rt.jar.)

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: