Is there a way to make it so that you can use the memory usage arguments inside the java class without using eclipse or the java program compiler, just simple code that you can do inside the class using notepad or something. If you do not know what I mean, here is an example:
public class Example {
public Example() {
-Xmx("1024M");
}
public static void main(String args[]) {
new Example();
}
}
Please help, thanks! Note. I do not want the cmd / batch file to run it with -Xmx!
source
share