简体   繁体   中英

How to make Java application memory allocated editable?

I have seen a Java application that allows its users to manually edit the application memory allocated. Here is its screenshot:

在此处输入图片说明

Does someone know how I can do a similar thing to my application?

It's not Minecraft which allocates memory for itself. MagicLauncher is a seperate program that calls java with the correct parameters to start minecraft.jar.

To allocate memory for Java, you can use for example java -jar -Xmx512 program.jar to give program.jar 512 megabytes of memory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM