How to change Java JDK path of Matlab compiler

Matlab R2016a cannot export java libraries and the problem seems related to the fact Matlab doesn't support Java JDK 8 and in my system JAVA_HOME point to Java 8 JDK. ( SEE HERE )
I need Java 8 and replace it with older version every time obviously isn't an acceptable solution.
Matlab offers the opportunity to set a custom Java distribution for its execution using on Windows MATLAB_JAVA environment variable path.
Is there any similar solution for Java JDK used? So I could set a path for matlab JDK, without replacing the main JDK on my system.

Answers (0)

Categories

Asked:

on 16 Apr 2016

Edited:

on 17 Apr 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!