ClassNotFoundException while loading a class from file with URLClassLoader
问题 I am using the following code to create an instance of OdbcIniTarget class which implements the Target interface. The OdbcIniTarget class already exists in the application but is located in a different package and now should be loaded from the target directory which is not in the class path. ... // directory below is resolved to /D:/Workspace/<myproject>/targets/ private File targetsLocation = new File("targets"); ... private void loadTargets() { URL url = null; try { url = targetsLocation