how to put .properties file in classpath of an Eclipse plug-in

Posted by Krt_Malta on Stack Overflow See other posts from Stack Overflow or by Krt_Malta
Published on 2010-03-21T21:24:16Z Indexed on 2010/03/21 21:31 UTC
Read the original article Hit count: 140

Filed under:
|
|

Hi.

I have an application which is making use of a .jar file and a .properties file which must reside in the same directory as where the .jar file lies. On a normal java application, this works fine, however I'm building an Eclipse plug-in. I've tried attaching the .properties everywhere, in the classpath, build path, putting them in the same folder and calling the jar file from there (this gives an obsure error) and I've even tried putting the .properties file inside the .jar file even.... but no luck. Any ideas how this could be done please?

Thanks and regards, Krt_Malta

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about classpath