title: MalformedUrlException unknown protocol classpath in Java
body: <p>I am trying set the value of a URL instance variable as the classpath but I am getting the below error:</p>
  
  <pre><code>Exception in thread "main" java.net.MalformedURLException: unknown protocol: classpath
      at java.net.URL.&lt;init&gt;(URL.java:600)
      at java.net.URL.&lt;init&gt;(URL.java:490)
      at java.net.URL.&lt;init&gt;(URL.java:439)
      at com.foodprocessor.App.main(App.java:18)
  C:\Users\admin\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
  BUILD FAILED (total time: 0 seconds)
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>    public class App {
      public static void main(String[] args) throws MalformedURLException{
          MyEnvironmentA env = new MyEnvironmentA(new URL("classpath:"+System.getProperty("java.class.path")));
          env.run("ChocolateMilk");
       }
     }
  </code></pre>
  
  <p>Where am I going wrong?</p>