I tried to access resources (marked as) folder in Java app but nothing works, returns wrong paths
I've tried:
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
System.out.println(classLoader.getResource("."));
and
ClassLoader classLoader = Config.class.getClassLoader();
System.out.println(classLoader.getResource("."));
but it shows me
file:/D:/testProject/build/classes/main/
, and of course there's no resource files :(
How to access exactly resources
folder?
-TestProject
|-resources
|-src
|-main