我使用的是jdk 1.7.0_15。我需要使用 com.mathworks.jmi 包。但导入此包会出现“...包不存在”之类的错误。在网上搜索,没有找到名为jmi的jar文件。我很困惑:(
最佳答案
The interface comes in the form of a jar file called jmi.jar distributed with MATLAB. It is found at matlabroot/java/jar/jmi.jar where matlabroot is the location of your MATLAB installation (on Windows it is located at matlabroot\java\jar\jmi.jar). For instance, on OS X with MATLAB R2009b it is located at /Applications/MATLAB_R2009b.app/java/jar/jmi.jar. What this jar contains depends exactly on what version of MATLAB is installed. All of the code in it has the root package com.mathworks.jmi, and there are a number of subpackages. Subsequent releases of MATLAB have seen additions to jmi.jar
关于java - 在哪里可以找到 com.mathworks.jmi 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15050440/