Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get the Eclipse directory path?
How to get the Eclipse directory path? [message #199919] Mon, 23 February 2004 16:37 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
>
Previous Topic:Can an EditorActionBarContributor contribute to your plugin's menus?
Next Topic:Can a menu item be enabled when an editor is inactive but at the top?
Goto Forum:
  


Current Time: Sat Nov 09 03:16:24 GMT 2024

Powered by FUDForum. Page generated in 0.03358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top