Theprogrammersfirst
A technical portal. It contains well explained topics and articles.
Home
Tutorials
Java
Data Structure
Algorithm
Interview Questions
Ask Question
Discussion
About Us
2016-06-10
Java program to get class path file by name
URL resource = myClass.class.getResource("/PmlConfig.xml");
System.out.println((new File(resource.toURI())).getAbsolutePath()));
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment