Eclipse problems solved (finally)
I was getting a lot of hassle from eclipse after updating to ubuntu feisty. Finally I found the problem. I was running GNU java VM (GIJ) as default, while eclipse is build to run with the SUN java VM. The GIJ is only Java 1.4 and it therefor not working correctly.
Run the command `java -version`. And if you get the following, it’s no good:
java version “1.4.2″
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
Just install the SUN java packages (using apt) and then run `update-java-alternatives -s java-1.5.0-sun`. When you run `java -version` now, you should read:
java version “1.5.0_11″
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode)
Now re-install eclipse and it will run like a charm.
FYI, I was get the following error in the PHP explorer window:
Unable to create view: NOT_SUPPORTED_ERR: The implementation does not support the requested type of object or operation.
org.w3c.dom.DOMException: NOT_SUPPORTED_ERR: The implementation does not support the requested type of object or operation.
at org.apache.xerces.dom.CoreDOMImplementationImpl.createLSParser(Unknown Source)
at gnu.xml.dom.DomDocumentBuilderFactory.newDocumentBuilder(libgcj.so.70)
at org.eclipse.php.internal.core.project.options.PHPProjectOptions.loadOptions(Unknown Source)
at org.eclipse.php.internal.core.project.options.PHPProjectOptions.(Unknown Source)
at org.eclipse.php.internal.core.project.PHPNature.getOptions(Unknown Source)
at org.eclipse.php.internal.core.project.options.PHPProjectOptions.forProject(Unknown Source)
at org.eclipse.php.internal.ui.treecontent.IncludePathTreeContent.getChildren(Unknown Source)
at org.eclipse.php.internal.ui.StandardPHPElementContentProvider.getChildren(Unknown Source)
at org.eclipse.php.internal.ui.explorer.ExplorerPart$ExplorerTreeViewer.isExpandable(Unknown Source)
at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:1900)
at org.eclipse.jface.viewers.AbstractTreeViewer.updatePlus(AbstractTreeViewer.java:2487)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:754)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:731)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
……
09 May 2007 Arnold Daniels




Hey there,
I think the command line is not entirely correct. At least it did not work for me…What did work for me was this:
sudo update-java-alternatives -s java-1.5.0-sun
It should have read ‘- – set’ (without the spaces), but for some reason two – are displayed as — in wordpress. The -s works as well. Thanks for your comment.
You don’t need to reinstall eclipse if you start it like this :
eclipse -vm /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
That is more a workaround than a real solution though. It will also give you grief when jvm updates.
My Eclipse problem on Ubuntu is that Eclipse keeps trying to use pop-ups when I’m running command line tools. Within an SSH session I enter my command and I see output similar to…
org.eclipse.swt.SWTError: No more handles gtk_init_check() failed
at org.eclipse.swt.SWT.error(SWT.java:3803)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:855)
or
(.:24425): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(.:24425): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)’ failed
(.:24425): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)’ failed
(.:24425): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)’ failed
The reason is generally that there is a pop-up error message. I have to VNC into the device, do an xhost+localhost, and then run it in order to not see the above problems.
Can you tell me a fix for this?
I’m not sure if I can help you Brian.
Try the Gnome Support forum. http://gnomesupport.org/forums
And see http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-connect-data