I wanted to run Minecraft and tell it to use more RAM than whatever its default is, the purpose was to decrease loading times when entering new biomes and the like.
I saw, when using the name command given to me in this question's answer by Tobias, that part of the line had a section for memory (-Xms -Xms).
java -Xms2048m -Xmx2048m -cp "%APPDATA%\.minecraft\bin\*" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft "yournamehere"
However, I wanted a command that allowed me to change the maximum memory, without skipping the login process. I searched Gameing.SE for Minecraft-Memory questions and found this question which had a nice line of code in an answer that was stated to improve Minecraft performance.
"C:\Program Files\Java\jre6\bin\java" -Dsun.java2d.noddraw=false -Dsun.java2d.d3d=true -Dsun.java2d.opengl=false -Xms2048M -Xmx2048M -jar "C:\minecraft.jar"
Now my minecraft.jar file isnt sitting naked in my C: drive to my knowledge, and also I dont seem to need the full directory path to java, or else the first command I annotated wouldnt work. So what I came up with is this:
java -Dsun.java2d.noddraw=false -Dsun.java2d.d3d=true -Dsun.java2d.opengl=false -Xms2048M -Xmx2048M -jar "C:\Users\Ender\Desktop\Minecraft.exe"
When I run it, my Minecraft.exe file runs properly (it seems) and I can login (or attempt to anyway if my internet is being difficult) but I have no idea if the command is actually working as I intended it to. Is this command right? Or is it wrong and just seems as if it's right?