How to get the Eclipse installation directory through programming in swt/java.
I actually want to get the plugins directory of the eclipse.
How to get the Eclipse installation directory through programming in swt/java. I actually want
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update (January 2012)
James Moore mentions in the comments that the FAQ and API are quite old.
FileLocator.resolve(URL)is now preferred to the deprecatedPlatform.resolve().As this example shows, you need to pass the actual resource (here a bundle), not the name of the resource, in order to resolve it:
See also “How to refer a file from jar file in eclipse plugin” for more.
Original answer (January 2011)
Maybe the FAQ “How do I find out the install location of a plug-in?” can help here: