MATLAB: Install through X11 Forwarding on Red Hat 7

x11 fowarding installation failure

I'm having trouble installing MATLAB R2015B on Red Hat Enterprise 7 through X11 forwarding. When I run "./install" I can see the splash screen, but then the installer immediately quits. Here is the corresponding output:
$ ./install
Preparing installation files ...
Installing ...
Finished
I have also run ./install -v, here it is:
$ ./install -v
Preparing installation files ...
-> DVD = /home/user/matlab_install
-> ARCH = glnxa64
-> DISPLAY = 152.19.9.71:10.0
-> TESTONLY = 0
-> JRE_LOC = /tmp/mathworks_8084/sys/java/jre/glnxa64/jre
-> LD_LIBRARY_PATH = /tmp/mathworks_8084/bin/glnxa64
Command to run:
/tmp/mathworks_8084/sys/java/jre/glnxa64/jre/bin/java -Xmx512m -splash:"/home/user/matlab_install/java/splash.png" -cp /tmp/mathworks_8084/java/config/professionalinstaller/pathlist.jar com/mathworks/professionalinstaller/Launcher -root "/home/user/matlab_install" -libdir "/tmp/mathworks_8084"
Installing ...
Finished
This command also shows the splash screen and immediately dies. Has anyone else encountered this problem?

Best Answer

I figured out the answer to my own question. Java is required for the installation, but Red Hat 7 doesn't have Java installed by default. You can install Java following the instructions here:
https://access.redhat.com/documentation/en-US/JBoss_Communications_Platform/5.0/html/Platform_Installation_Guide/chap-Installing_and_Configuring_Java.html
Related Question