title: Launch Minecraft from command line - username and password as prefix
body: <p>I'm trying to make a simple custom Minecraft launcher thing. </p>
  
  <p>According to <a href="http://www.minecraftwiki.net/wiki/Minecraft_launcher" rel="noreferrer">the Minecraft Wiki page for the Launcher</a>,
  it should be possible to run the Minecraft launcher using username and password prefixes from the command line and go directly to the game instead of through the launcher.</p>
  
  <p>I've tried various versions of <code>java -cp -u=username -p=password minecraft.jar net.minecraft.LauncherFrame</code>, and what it says is the old method: </p>
  
  <pre><code>java -cp minecraft.jar net.minecraft.LauncherFrame &lt;username&gt; &lt;password&gt;
  </code></pre>
  
  <p>The old method opens the minecraft launcher, just as if I double clicked the jar file, however it does not go directly to the menu screen.</p>
  
  <p>The new way (using password and username as prefix), gives me an error message saying the <code>prefix -u=username or -p=password don't exist</code>.</p>
  
  <p>Any help on this? I'm really stuck.</p>