When execute the AEM jar via command prompt using
"java -Xmx5130m -jar <path>\aem-author-4502.jar -gui"
it shows the below error dialog box
But when I run the jar by double clicking it works fine.Can anyone facing the same before or any solution to overcome this.?
Java version 8
AEM jar version 6.4
I believe you have followed the technical requirements listed here. https://docs.adobe.com/docs/en/aem/6-1/deploy/technical-requirements.html#Virtual%20&%20Cloud%20Comp...
Difference I can notice in your scenario with the command line startup and double clicking jar is maxheap size allocation.
Can you please try this below solutions:
1.Remove the -Xmx param and try to run the jar. (This will pick the standard heapsize. Suggesting this to know if the issue is due to heapsize allowcation in the system).
2. Please check the stderr.log. you should see the errors related to startup here.