使用Matlab-Java-API给出“在java.library.path中没有nativemvm". [英] Using the Matlab-Java-API gives "no nativemvm in java.library.path"

查看:643
本文介绍了使用Matlab-Java-API给出“在java.library.path中没有nativemvm".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Java运行Matlab函数(Matlab 2017a)(如

I am trying to run a Matlab function (Matlab 2017a) from Java (as shown here) and want to use the Java Matlab engine API for this purpose. I started adding the engine.jar file to the external libraries (I'm using the IntelliJ IDE). However, this gives the following error: "Exception in thread "main" java.lang.UnsatisfiedLinkError: no nativemvm in java.library.path"

第一次搜索使我此处,其中表示应将matlabroot永久添加到PATH.因此,我使用Windows UI检查了我的PATH,以发现 matlabroot \ R2017a \ bin 已经包含在内.但是,就我而言,我仍然会收到错误,并且不知道现在该怎么办.任何帮助都将受到高度赞赏.

A first search got me here where it says that the matlabroot should be added to the PATH permanently. So I checked my PATH using the Windows UI to find that matlabroot\R2017a\bin is already included. However, in my case I still get the error and have no idea what to do now. Any help is highly appreciated.

推荐答案

回答我自己的问题:在路径中添加\ R2017a \ bin \是不够的.必须是\ R2017a \ bin \ win64,然后它才能工作.

Answering my own question: Adding \R2017a\bin\ to the PATH is not sufficient. It has to be \R2017a\bin\win64 and then it works.

这篇关于使用Matlab-Java-API给出“在java.library.path中没有nativemvm".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆