Search code examples
m2eclipsejava

m2eclipse crashes eclipse 3.5.SR2 running on openjdk-6-jdk


I downloaded the latest version of eclipse (3.5.SR2) and get m2eclipse installed on.

Instead of running on sun-jdk-6 (which is obsolete for the recent Ubuntu 10.04 alpha), I have eclipse running on open-jdk-6.

Everything was just fine. I can open my existing project and have them compiled as well as running tests.

However, with m2eclipse installed on, my eclipse will crash every time I start it.

If I stopped the m2eclipse plugin from contacting the central repo, then eclipse will continue to run normally.

The craziest point is that eclipse will exit immediately as soon as the contacting to central repo finish, but leave no track in the log.

What should I do right now?


Solution

  • Yeah, I was having the same problem. Was driving me crazy. (Ubuntu 10.04). I modified my eclipse.ini to be as follows (NOTE: I have /usr/lib/jvm/java-6-sun as a soft-link to /usr/lib/jvm/java-6-sun-1.6.0.20) - NOTE the "-vm" line and following line:

    -startup
    plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -vm
    /usr/lib/jvm/java-6-sun/bin/java
    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519
    -product
    org.eclipse.epp.package.reporting.product
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx1024m
    

    Now everything works great! Thanks all for the help!