title: Minecraft Launcher: Cannot get main method need assistance
body: <p>I am trying to create a simple launcher for Minecraft 1.7.10. However, when I try to get the main method from <code>net.minecraft.client.main.Main</code> I get the error: </p>
  
  <blockquote>
    <p>java.lang.ClassNotFoundException: joptsimple/OptionSpec.</p>
  </blockquote>
  
  <p>I've tried studying code from other launchers to see how they get around this issue, but I cant see any difference.</p>
  
  <pre class="lang-java prettyprint-override"><code>public Method getMainMethod() throws NoSuchMethodException, SecurityException, 
                                      ClassNotFoundException, IOException, 
                                      InstantiationException, IllegalAccessException  
  {            
      return new URLClassLoader(new URL[] {new URL("file:///" + 
                                      MinecraftUtil.getBinFolder() + "/minecraft.jar")}, 
                                      URLClassLoader.getSystemClassLoader().getParent())
                                      .loadClass("net.minecraft.client.main.Main")
                                      .getMethod("main", String[].class);
  }
  </code></pre>
  
  <p>This is supposed to get the main method from minecraft.jar and allow me to invoke it, but if I even try to load the class it spits the joptsimple/optionspec error.</p>