Firstly, AWS Linux AMI is not a supported platform for MATLAB. But, in case you need to make this work, it is important to note that the AWS AMI instance would have some missing Libraries required by MATLAB runtime. In this case, the following are the missing libraries:
mesa-libGL -> resolves issues with libglu1.so.1 which was missing
libXmu -> resolves issues with libXt.so.6 which was missing
Installing both of these packages with a YUM install will fix the missing system library issues.
Running an LDD on each MATLAB library and looking for missing dependencies by comparing them with the list of libraries provided by AWS. Inspecting the list, we were able to determine what was causing the MCR to crash. Please find the list of libraries provided by AWS in the following link:
Secondly, for deploying a web application which uses MATLAB compiled JAR, one of the best ways would be to work with MATLAB Production Server instead to avoid the aforementioned issues.
Best Answer