I believe that if you track down the reason why it does not think there is a glnxa64 architecture for your installation, that you will simultaneously solve the reason it could not find the appropriate JRE for the architecture it doesn't know about.
It is not enough to have java installed: MATLAB is very sensitive to the exact JRE version. The installer would have installed that java version for you.
Which MATLAB version are you attempting to install? Old enough versions were not available on Linux 64 bit.
If you are attempting to install R2007a onward (approximately), then Linux 64 bit was supported, in which case you should contact MATLAB Support, as they have free support for installation problems.
