What Matlab version support Java 8 (class file version per the JVM Specification)?

6 Ansichten (letzte 30 Tage)
I am trying to use Java JmDNS with Matlab R2014a but it gave me an error:
Unsupported major.minor version 52.0 (java 8).
Basically Matlab does not work with Java 8 class files.

Akzeptierte Antwort

Bernhard
Bernhard am 20 Apr. 2016
This issue is becoming urgent for us too because more and more Java libraries are moving to Java 8 (e g. the upcoming eXist 3.0 release (www.exist-db.org). Which MATLAB release will be the first one to support Java 8?
  3 Kommentare
Bruce Murphy
Bruce Murphy am 28 Aug. 2019
Thats for R2017b, though, not R2015a, correct? We dont have R2017b.
Walter Roberson
Walter Roberson am 28 Aug. 2019
However notice the answer from Pavirthra saying that R2015b was shipped with Java 1.7 and that it is not recommended to change Java releases. When I check the Compiler Requirements page for R2015a it also appers to be using Java 1.7.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Pavithra Ashok Kumar
Pavithra Ashok Kumar am 22 Jan. 2016
Bearbeitet: Pavithra Ashok Kumar am 22 Jan. 2016
I understand you want to use Java 8 with MATLAB. However, MATLAB R2015b was also shipped with Java 1.7( Refer the compiler requirements here ). It is recommended not to change the java version that is shipped with MATLAB. (In your case it would be 1.7.0_11). However if you want to change the JVM that MATLAB uses, follow the link here.

Kategorien

Mehr zu Call Java from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by