MATLAB Answers

Paolo
0

R2017a - Unsupported major.minor version 52.0

Asked by Paolo
on 26 Apr 2018
Latest activity Edited by Yair Altman on 23 Dec 2018
Hello, I've just imported an external jar in MATLAB R2018a and it works correctly, but if I am going to import same exernal jar into R2017a I have the following error
...Unsupported major.minor version 52.0
Does it means that the java compiler in R2017a is different that used to compile the external jar function ? If not, what could be the reason of the above error?
Thank you Best Regards Paolo

  0 Comments

Sign in to comment.

1 Answer

Answer by Yair Altman on 22 Dec 2018
Edited by Yair Altman on 23 Dec 2018

52.0 indicates Java classes compiled with JDK 8 - These classes can only be run under Java 8 or newer. Until R2017a Matlab integrated Java 7, which cannot run such classes. Java 8 was only included in Matlab in the R2017b release. This means that to run your classes in Matlab you'd need to do one of the following:
  1. Retrofit your Matlab R2017a installation to use Java 8 or newer (details)
  2. Use R2017b or newer instead of R2017a
  3. Recompile the Java classes using JDK 7 or older
Yair Altman

  0 Comments

Sign in to comment.