title: how to pass command line arguments to main method dynamically
body: <p>I am passing my main class as a command line argument to launch VM</p>
  
  <p>Now i need to pass command line arguments to that main class</p>
  
  <p>Is there any way to do this?</p>
  
  <p>this is the way i am doing it</p>
  
  <pre><code>    VirtualMachineManager manager = Bootstrap.virtualMachineManager();
      LaunchingConnector connector = manager.defaultConnector();
      Map arguments = connector.defaultArguments();
      ((Connector.Argument)arguments.get("options")).setValue(userVMArgs);
      ((Connector.Argument)arguments.get("main")).setValue(cmdLine);
  </code></pre>
  
  <p>here userVMargs is classpath of my main class and the also classpath of the class which is being used to invoke the method of class inside my main class</p>
  
  <p>and cmdLine is having my main class along with the class and its function
  and i am using eclipse as IDE to develop my project</p>