We are in a problem in which we are reading a folder inside a project For that we have kept the folder inside the resource folder
src\main\resource\plugins
we need to find the path of the plugin folder inside the resource folder . When running from eclipse below code is working but when the same is invoked with jar then not able to run
String path = XYZClass.class.getClassLoader().getResource("plugins").getFile();
it is able to find the path in eclipse but when running fron jar it not able to recognize it and when i print the path as coming on console
D:/Workarea/text/lib/xyx-3.2.3.1-SNAPSHOT.jar!/plugins