I am passing my main class as a command line argument to launch VM
Now i need to pass command line arguments to that main class
Is there any way to do this?
this is the way i am doing it
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);
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
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
