Use Java 11 jar files in Matlab
    3 次查看(过去 30 天)
  
       显示 更早的评论
    
Hello,
i'm trying to use a java 11 .jar file in my application. As far as i know Matlab can only run Java 8 .jar files.
Is there a way to work around this?
Thanks for your help in advance!
0 个评论
采纳的回答
  Michal
      
 2022-8-30
        
      编辑:Michal
      
 2022-8-30
  
      You can use following java compiler (javac) option:
--release <release>
Compile for a specific VM version. Supported targets: 6, 7, 8, 9, 10, 11
which generate JAR file for specific JAVA version (release).
But I don't know what to do in case you want to run Java 8 compiled JAR file on future versions of MATLAB with JAVA 11 internal engine. TMW does not presents any road-map for internal java engine regarding future MATLAB releases.
1 个评论
更多回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Call Java from MATLAB 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

