Matlab and Java 8

I am going to develop a complex Java application that should run on a computer with Debian 8.6 and JRE 8u71 installed. In addition, the application uses some Java classes developed and compiled in Matlab.

Matlab (version R2015b - R2017a) currently supports the Java version 7u61. So I would like to know if anyone has experience using Matlab and installing JDK 8. I know about the following article:

http://de.mathworks.com/matlabcentral/answers/130359-how-do-i-change-the-java-virtual-machine-jvm-that-matlab-is-using-on-windows

but I'm not sure this is a good idea. Also, will this also change the version of the Java Matlab Compiler Runtime? For testing, I also need to integrate some Java classes (version 8u71) into Matlab.

Any help is appreciated.

Thanks in advance!

+4
source share
1 answer

I used Matlab 2015b with Java 8 for both Windows and Linux for a while (using a parameter MATLAB_JAVA) and never experienced any problems (unlike when I tried to use some older versions of Matlab with Java 7). This allows you to use java classes compiled with Java 8, that is, all the attractive features of the language, such as lambdas, etc.

+3
source

Source: https://habr.com/ru/post/1666462/


All Articles