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

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations