Hey guys. I've got a question about putting -Xmx2048MB directly into a .jar file so that it increases the heap size every time I open the jar. Do I just pass this into the args array in my main method? Can I call this using actual Java code within my program?

I don't think executable jars have any mechanism for this at all. Use Java Web Start or write your own launcher. Even a shell script/batch file will work, but then you have to supply one for every platform you support.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org