title: An object reference is required for the non-static field, method, or property
body: <p>I wrote a very small function to start a Java application in C# NET, but I am getting the error "An object reference is required for the non-static field, method, or property 'MinecraftDaemon.Program.LaunchMinecraft()' C:\Users\Mike\Desktop\Minecraft\MinecraftDaemon\Program.cs". I have searched other threads that suffer from the same issue but I don't understand what it means or why I am getting it.</p>
  
  <pre><code>namespace MinecraftDaemon
  {
      class Program
      {
          public void LaunchMinecraft()
          {
              ProcessStartInfo processInfo = new ProcessStartInfo("java.exe", "-Xmx1024M -Xms1024M -jar minecraft_server.jar nogui");
              processInfo.CreateNoWindow = true;
              processInfo.UseShellExecute = false;
  
              try
              {
                  using (Process minecraftProcess = Process.Start(processInfo))
                  {
                      minecraftProcess.WaitForExit();
                  }
              }
              catch
              {
                  // Log Error
              }
          }
  
          static void Main(string[] args)
          {
              LaunchMinecraft();
          }
      }
  }
  </code></pre>