title: Launch minecraft 1.6.4 from command line with C#
body: <p>I'm currently working on a custom Minecraft 1.6.4 launcher.
  I have written most of the code is C# however I'm writing the final piece of code in batch.</p>
  
  <p>This seems to work to launch the minecraft 1.5.2 jar</p>
  
  <pre><code>cd "%~1"
  java -Xms512m -Xmx1g -Djava.library.path=Bin\bin\native\ -cp Bin\bin\* net.minecraft.client.Minecraft %~2 %~3
  pause
  </code></pre>
  
  <p>(C# Works out the session ID (%~3))</p>
  
  <p>However in minecraft 1.6.4 I get an error:</p>
  
  <pre><code>Error: Could not find or load main class net.minecraft.client.Minecraft
  </code></pre>
  
  <p>I have heard about a change in the way Minecraft launches, is there anyway for me to implement the new system into my launcher?</p>
  
  <p>If there is a way to do it without batch that would be awesome!</p>
  
  <p>C# code to launch the batch file:</p>
  
  <pre><code>string sessionID = Session.DoLogin(tbUser.Text, tbPassword.Text).SessionId;
  Process p = Process.Start("launch.bat", @"""" + filePath + @"""" + " " + tbUser.Text + " " + sessionID);
  p.WaitForExit();
  </code></pre>