Java program to get class path file by name

           

URL resource = myClass.class.getResource("/PmlConfig.xml");          
System.out.println((new File(resource.toURI())).getAbsolutePath()));

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Today Walkin 14th-Sept

Object oriented programming concepts (OOPs)