Running Eclipse From Applications Menu



Hi all,

I'm having a problem running eclipse from the Applications menu.

i'm using Ubuntu 5.10 for 64-bit PC.

i downloaded Sun's JDK 1.5.0_06 and installed it in
/home/edwin11/jdk1.5.0_06,
and i downloaded Eclipse 3.1.1 and unpacked it in
/home/edwin11/eclipse.

Then i modified the /home/edwin11/eclipse/eclipse.ini file to add the
line:
-vm /home/edwin11/jdk1.5.0_06/bin/java

When i run Eclipse from command line,
(i.e. running "./eclipse" from /home/edwin11/eclipse),
all is fine,
looking at the Configuration Details in Eclipse, i can see the
following three lines:
-vm /home/edwin11/jdk1.5.0_06/bin/java
-vm
/home/edwin11/jdk1.5.0_06/bin/java

However, then i add the following menu item to the Applications menu:
Name: Eclipse
Command: /home/edwin11/eclipse/eclipse

And when i try to launch Eclipse from the Applications menu,
i get the following error text in the Package Explorer view:
Unable to create view: Plug-in org.eclipse.jdt.ui was unable to load
class org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.
with the following exception:
java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart
at ._ZN4java4lang11VMThrowable16fillInStackTraceEPNS0_9ThrowableE
(/usr/lib/libgcj.so.6.0.0)
at ._ZN4java4lang9Throwable16fillInStackTraceEv
(/usr/lib/libgcj.so.6.0.0)
at ._ZN4java4lang9ThrowableC1EPNS0_6StringE
(/usr/lib/libgcj.so.6.0.0)
at ._ZN4java4lang9ThrowableC1EPNS0_6StringEPS1_
(/usr/lib/libgcj.so.6.0.0)
at ._ZN4java4lang9ExceptionC1EPNS0_6StringEPNS0_9ThrowableE
(/usr/lib/libgcj.so.6.0.0)
at
.._ZN4java4lang22ClassNotFoundExceptionC1EPNS0_6StringEPNS0_9ThrowableE
(/usr/lib/libgcj.so.6.0.0)
at ._ZN4java4lang22ClassNotFoundExceptionC1EPNS0_6StringE
(/usr/lib/libgcj.so.6.0.0)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(java.lang.String,
boolean) (Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(java.lang.String)
(Unknown Source)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(java.lang.String,
boolean) (Unknown Source)
at ._ZN4java4lang11ClassLoader9loadClassEPNS0_6StringE
(/usr/lib/libgcj.so.6.0.0)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(java.lang.String)
(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(java.lang.String,
boolean) (Unknown Source)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(java.lang.String)
(Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(org.osgi.framework.Bundle,
java.lang.String, java.lang.Object,
org.eclipse.core.internal.registry.ConfigurationElement,
java.lang.String) (Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(java.lang.String,
java.lang.String, java.lang.Object,
org.eclipse.core.internal.registry.ConfigurationElement,
java.lang.String) (Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(java.lang.String)
(Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(java.lang.String)
(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run() (Unknown Source)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(org.eclipse.swt.widgets.Display,
java.lang.Runnable) (Unknown Source)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(org.eclipse.core.runtime.IConfigurationElement,
java.lang.String) (Unknown Source)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView()
(Unknown Source)
at org.eclipse.ui.internal.ViewReference.createPartHelper() (Unknown
Source)
at org.eclipse.ui.internal.ViewReference.createPart() (Unknown
Source)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(boolean)
(Unknown Source)

And when i look at the Configuration Details,
i see the following three lines instead (compare with the three above
when i run from command line):
-vm /home/edwin11/jdk1.5.0_06/bin/java
-vm
/usr/bin/java

What did i miss out when creating the entry in the Applications menu?



TIA and Regards,
Edwin

.



Relevant Pages

  • FC4: Eclipse Fails to Save
    ... Eclipse C++ project that I was using in FC3, ... I look at the .log file it looks like it can't find the class ... java.io.File, long, boolean) (Unknown Source) ...
    (Fedora)
  • Re: Running Eclipse From Applications Menu
    ... When i run Eclipse from command line, ... boolean) (Unknown Source) ... And when i look at the Configuration Details, ...
    (comp.os.linux.misc)