SyntaxFix
Write A Post
Hire A Developer
Questions
You need to use following construction
InputStream in = getClass().getResourceAsStream("/yourFile");
Please note that you have to add this slash before your file name.