How to get the Eclipse directory path? [message #199919] |
Mon, 23 February 2004 16:37 |
Eclipse User |
|
|
|
Originally posted by: cjammer.earthlink.net
I'm looking for a quick and reliable way of getting both the Eclipse
directory and the plugin directory. Presumably, the Eclipse directory is
the parent of the plugins directory, but this is not always the case.
I need this to work on Eclipse 2.1.1 or 2.1.2.
If I try something like:
Platform.getPlugin("org.eclipse.runtime.core").getStateLocation();
I see this error:
java.lang.NoClassDefFoundError:
org/eclipse/core/internal/boot/DelegatingURLClassLoader
Same error with:
Platform.getLocation();
and
Platform.getPluginRegistry();
What's the standard way of finding (for example) "C:\eclipse2.1.1"
or "C:\eclipse2.1.1\plugins" from inside a custom install handler
that extends BaseInstallHandler?
|
|
|
Re: How to get the Eclipse directory path? [message #200095 is a reply to message #199919] |
Mon, 23 February 2004 19:49 |
Eclipse User |
|
|
|
Originally posted by: cjammer.earthlink.net
Hey, I got it working... turns out I was missing org.eclipse.core.boot.
Clinton Jammer wrote:
> I'm looking for a quick and reliable way of getting both the Eclipse
> directory and the plugin directory. Presumably, the Eclipse directory is
> the parent of the plugins directory, but this is not always the case.
> I need this to work on Eclipse 2.1.1 or 2.1.2.
> If I try something like:
> Platform.getPlugin("org.eclipse.runtime.core").getStateLocation();
> I see this error:
> java.lang.NoClassDefFoundError:
> org/eclipse/core/internal/boot/DelegatingURLClassLoader
> Same error with:
> Platform.getLocation();
> and
> Platform.getPluginRegistry();
> What's the standard way of finding (for example) "C:eclipse2.1.1"
> or "C:eclipse2.1.1plugins" from inside a custom install handler
> that extends BaseInstallHandler?
|
|
|
Re: How to get the Eclipse directory path? [message #200103 is a reply to message #199919] |
Mon, 23 February 2004 19:49 |
Eclipse User |
|
|
|
Originally posted by: cjammer2.earthlink.net
Ok, I got it working... turns out I was missing org.eclipse.core.boot
Clinton Jammer wrote:
> I'm looking for a quick and reliable way of getting both the Eclipse
> directory and the plugin directory. Presumably, the Eclipse directory is
> the parent of the plugins directory, but this is not always the case.
> I need this to work on Eclipse 2.1.1 or 2.1.2.
> If I try something like:
> Platform.getPlugin("org.eclipse.runtime.core").getStateLocation();
> I see this error:
> java.lang.NoClassDefFoundError:
> org/eclipse/core/internal/boot/DelegatingURLClassLoader
> Same error with:
> Platform.getLocation();
> and
> Platform.getPluginRegistry();
> What's the standard way of finding (for example) "C:eclipse2.1.1"
> or "C:eclipse2.1.1plugins" from inside a custom install handler
> that extends BaseInstallHandler?
|
|
|
Re: How to get the Eclipse directory path? [message #200479 is a reply to message #199919] |
Tue, 24 February 2004 02:28 |
Eclipse User |
|
|
|
Originally posted by: pascal.rapicault.ibm
BootLoader.getInstallURL()
PaScaL
Clinton Jammer wrote:
> I'm looking for a quick and reliable way of getting both the Eclipse
> directory and the plugin directory. Presumably, the Eclipse directory is
> the parent of the plugins directory, but this is not always the case.
>
> I need this to work on Eclipse 2.1.1 or 2.1.2.
>
> If I try something like:
> Platform.getPlugin("org.eclipse.runtime.core").getStateLocation();
>
> I see this error:
> java.lang.NoClassDefFoundError:
> org/eclipse/core/internal/boot/DelegatingURLClassLoader
>
> Same error with:
> Platform.getLocation();
> and
> Platform.getPluginRegistry();
>
> What's the standard way of finding (for example) "C:\eclipse2.1.1"
> or "C:\eclipse2.1.1\plugins" from inside a custom install handler
> that extends BaseInstallHandler?
>
|
|
|
Powered by
FUDForum. Page generated in 0.03358 seconds