I recently installed MATLAB R2018a and experienced crashing on startup. Whenever I ran matlab from the terminal the splash would pop up for a few seconds, then the entire OS would freeze. I was forced to hard reset my computer as I was completely locked out. Because of this, no error messages or logs have been created at any point in time.
I then uninstalled MATLAB then reinstalled it and was met with the same error. I uninstalled MATLAB again then installed the R2016b version which works on another machine of mine with the same operating system. The exact same crashing recurred.
I then discovered that I am able to run MATLAB successfully if I start it with the -nojvm option. I then did a fresh install of java (OpenJDK version 1.8.0_171) after finding it was not installed. This did not resolve the issue.
Any help would be greatly appreciated, thank you.