Is there anyway to configure/pass JVM runtime variables to jar when packing a jar file?
I don't want user to type java -Xmx512m -jar MyApplication.jar
instead, I want to pass on this info when packing jar file so that when user double clicks on MyApplication.jar JVM knows that it needs 512M of memory.
Hi Vadiraj, Thanks a lot for the help. Code you provided works fine. However, I found another way as following which does not require any awt components and also provides a way for fixing window size.