I have a plugin project, which copies some resource files from its own to another project. How can I refer the local files? Currently, I try like this, but it does not work.
FileInputStream fileStream = new FileInputStream("image.jpg");
I have a plugin project, which copies some resource files from its own to another project. How can I refer the local files? Currently, I try like this, but it does not work.
FileInputStream fileStream = new FileInputStream("image.jpg");
Basically you should put your files inside your project folder structure and reference it with relatives path. To get the files you should use
MyJavaClass.getClass().getResources("relative_path");