title: ClassNotFound With URLClassLoader
body: <p>I currently have the following directory tree structure:</p>
  
  <pre><code>CLASSES  
    -&gt; ClassOne  
       -&gt;package
          -&gt; my
             -&gt;App.class
  </code></pre>
  
  <p>I would like to load the App.class from my local drive. I looked around, particularly stackoverflow, and most seem to suggest that I should use the URLClassLoader. </p>
  
  <p>In order to do this, I used this following code:</p>
  
  <p>However, I get a ClassNotFoundError. Can anybody help me please.</p>
  
  <pre><code> String url = "file://" + classOneFolder.getAbsolutePath(); //Where classesFolder is a File representing the ClassOne directory
  
   URL[] urls = {new URL(url)};
   urlClassLoader = URLClassLoader.newInstance(urls);                    
  
   //class loader needs the fully classified class name. Therefore:
   Class appClass = urlClassLoader.loadClass("package.my.App");
  </code></pre>