I\'m trying to read a file in my maven project at /src/main/resources/file.txt.
I\'m using
URL url=this.getClass().getResource(\"/\"); String filePa
You should move that file into your CLASSPATH and get it like this:
InputStream is = this.getClass().getResourceAsStream("file.txt");