Reading a file from jar

Hi,
Iam developing a plugin project, once i import my plugin as jar, for the new user who installs it, for the initial settings, i need to read a file from jar. How can i do it.
can someone pls help.

Thanks,
Mangala

3 comments
Comment actions Permalink

You can use the standard java.lang.ClassLoader.getResourceAsStream() method for this.


0
Comment actions Permalink

I tried it. It is not working. It is not reading the file from jar

0
Comment actions Permalink

Which path do you specify as a parameter?


0

Please sign in to leave a comment.