It sounds like the program (matlab) is a 64bit version and is using the 32bit JRE (Java Runtime Environment).
This means that the MATLAB_JAVA
environment variable is pointig to the wrong JRE path or is not set.
HINT: You can set or edit an environment variable by following these instructions (but use the values in this answer post): http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/
In the section "System variables" please modifiy or add the envirionment variable with the
- variable name: MATLAB_JAVA
- variable value: <use the path to your JRE>
For the path to your JRE check if one of them is available:
- C:\Program Files\Java\jre8
- C:\Program Files\Java\jre7
- resp. C:\Program Files\Java\jre<number>
HINT: For 64bit do not use the C:\Program Files (x86)\Java\jre<number>
path because this is the default 32bit path.
Save it and you should be good to go.