0

How do i get the location where an rcp eclipse exported application is running ?

thank you

Mara
  • 179
  • 2
  • 3
  • 11
  • Is this what you're after: [Getting the Current Working Directory in Java](http://stackoverflow.com/questions/4871051/getting-the-current-working-directory-in-java)? – Martti Käärik Oct 05 '11 at 10:02
  • Your question is not well formulated. For what do you need that location? Maybe there is an other way to resolve your problem! – Tim Oct 05 '11 at 11:55

1 Answers1

0

You might want to look at the class org.eclipse.core.runtime.Platform. More specifically the method getInstallLocation(). There are more methods of the form getXYZLocation() that might be more appropriate depending on what you need. Just display the locations in e.g. a message dialog to see where they point if the Javadoc isn't clear enough.

Tim
  • 2,831
  • 1
  • 25
  • 37
Frettman
  • 2,251
  • 1
  • 13
  • 9