I have one java file in a package which has one properties file. Now I want to access this properties file through java file. I dont want to specify location of the properties file. When I just pass name of properties file to File then its unable to find file. Please help me in this problem.