Open jar from another jar
问题 The same old problem ... I want to run my jar on Mac or Linux with high memory allocation. I do not want the user to open the Terminal and write java -XMx512 -jar MainJar.jar manually. I have seen a lot of solutions to fix this ... But i was wondering if this might work : " Executing the Terminal command java -XMx512 -jar MainJar.jar in Jar(B) to initialize Jar(A) with 512 MB memory allocation. ". In Jar(B) i have tried this code to run Jar(A) and it worked fine : public static void main