Reading .cer files from jar file failing
问题 I was trying to install client SSl cert at runtime. The certs are already packed with jar and is available in the below location While trying to read all available .cer files from the above mentioned path using below code ,it got failed String rootPath = this.getClass().getClassLoader().getResource("certs/"+activeProfile+"/").getPath(); File folder = new File(rootPath); File[] listOfFiles = folder.listFiles(); while debugging I am getting "rootPath" as "file:/workspace/mnb-123-no-data-flow