For the runnable jar that i am creating. it requires xmx1024 as JVM argument. How can i do this ? Or is there any alternative ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can provide a startup script for each and every platform the program is intended to run on. For example on Linux you can have
program.shObviously you have to tell the user that the program is intended to be run from the startup script, because if they try to manually start the jar it will fail.
You can even check in your program if the VM has been started with the required arguments and fail soon if not. Refer to this answer.