Public bug reported:

Binary package hint: eclipse

When starting eclipse (3.2) with an installed subclipse addon installed
eclipse will crash.

I did some investigations and found a workaround:

Since Subclipse relies on sun-java I changed the order of java
environments in /etc/eclipse/java_home so that sun-java would be the
first choice. Unfortunately hidden in the startup script
/usr/bin/eclipse are some gcj-related arguments which probably cause
eclipse to crash when subclipse components are called.

To work around this problem I did the following:

sudo gedit /usr/bin/eclipse

now outcomment the following lines in the very end of that file:

#    -vmargs -Djava.library.path=/usr/lib/jni \
#            -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db \
#            -Dgnu.gcj.runtime.VMClassLoader.library_control=never \
#            -Dosgi.locking=none ${VMARGS}

and add this line instead :
    -vmargs ${VMARGS}

Now I know this is quite a rough way of dealing with this but at least
now everything works like a charme. However if somebody can provide a
more clean way I'm more than happy to learn about it.

** Affects: eclipse (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Startup options cause eclipse to crash when "subclipse" is used
https://launchpad.net/bugs/69499

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to