Can't find file in resources folder in Plugin Project
Answered
I'm trying to access a resource (rollout_subnets.txt) from my main java package (com.example.____) in the resources root folder. My structure is as follows, an I am accessing it using “/rollout_subnets.txt”. I've tried many variations but I keep getting the error that the file is not found. How should I access it?
Please sign in to leave a comment.
MyIcons.class.getResource("/icons/panda_32.png")
to access/icons/panda_32.png
under resources bundled dir.MyClass.class.getClassLoader().getResourceAsStream("config.properties")