> On Aug 2, 2015, at 8:06 AM, Vladimir Nizamutdinov <
[hidden email]> wrote:
>
> Hello all! My plugin reads data from a text file, and I want to put
> this file in jar archive together with binaries classes. I put this
> file in the root of the archive, and read as BufferedReader br = new
> BufferedReader(new FileReader("weights.txt"));
> but still I get FileNotFoundException. How can i fix this error?
The "JAR Resources Demo” plugin at
http://imagej.nih.gov/ij/plugins/pcl-demo.htmldemonstrates how to read text files, images, LUTs and macros from a jar file.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html