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

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept