Hi, My executable swing client throws out of memory exception when executed from a remote machine. However, executing the client from command line (increasing the heap space) using the following command works.
java -XMx128m -Xms128m -jar myclient.jar
I do not want the remote users use my client through command line as shown above. So, can I set this heap space while building the executable? I am using Eclipse's Fat Jar Plug-In to create my executable jar.
Also, is there a way to setup a default value for java heap space for client machines(Windows/Mac/Linux)?
Thanks.