I work in a project where i need to get the url of the specified file. The code for that is as,

URL fileURL = Thread.currentThread().getContextClassLoader().getResource();

The required resource is available in the concerned path. But the file url returns null

Can you please help in solving the problem.

Thanks and Regards,