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.