how do I run a java .jar in Matlab

前端 未结 1 1994
渐次进展
渐次进展 2021-01-26 10:34

I need to run a Java .jar file in Matlab.

Let\'s call the file MyJar.jar, I am running Java 1.8.0_121-b13 if that helps.

I have tried different solutions, and r

相关标签:
1条回答
  • 2021-01-26 11:13

    The simplest solution I can think of is to execute the jar in a system command with:

    system('java -jar MyJar.jar')
    

    This way should work on any OS without any workaround.

    0 讨论(0)
提交回复
热议问题