I have a function where I am trying to load a file to a URL object, because the example project said so.
URL
public class SecureFTP { public s
Old question but this hasn't been said yet. You can do this from a static context:
ClassLoader classLoader = ClassLoader.getSystemClassLoader(); classLoader.getResource("filename");