How can I get the project path in Scala?
- Add your files to
src/main/resources/<packageName>
where<packageName>
is your class package. - Change the line
val PATH = getClass.getResource("").getPath
src/main/resources/<packageName>
where <packageName>
is your class package.val PATH = getClass.getResource("").getPath