2012-06-05 16:22:44 UTC
I need help with launching Java.exe with -Xmx and -Xms parameters, and launching a .Jar file
I have the Batch code for this.. could someone "translate" this into C++?
Batch code
@"%Programfiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms768M -jar "%Homepath%\Desktop\minecraft.jar"
Here's what I have so far..
void main() {
ShellExecute( NULL, NULL, "%Programfiles%\Java\jre7\bin\java.exe", NULL, NULL, SW_SHOW );
}
Is this correct? And can someone please add the -Xmx, -Xms parameters, and add the .Jar executable?