在java中调用matlab程序时报错:java.lang.UnsatisfiedLinkError:

在尝试使用Java调用Matlab程序时遇到`java.lang.UnsatisfiedLinkError`。问题根源在于Matlab与JRE版本不匹配。64位Matlab需要64位JRE,而作者之前使用的JDK是32位。解决方法是安装64位的JDK1.8,之后问题得到解决。此外,文章还介绍了如何查看Matlab和本地Java版本,并提醒读者一个计算机可以安装多个JDK版本,通过环境变量和IDE配置选择使用哪个版本。
摘要由CSDN通过智能技术生成

最近几天尽跟matlab做斗争去了,好不容易有点结果了,拿着matlab的东西往java里一运行,直接报错了:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to find the library mclmcrrt7_14.dll, required by MATLAB Builder JA, on java.library.path.
 This library is typically installed along with MATLAB or the MCR, its absence may indicate an issue with that installation or the current path configuration.
The MCR version that this component is trying to use is: 7.14.

	at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(MCRConfiguration.java:167)
	at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.<clinit>(MCRConfiguration.java:173)
	at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:178)
	at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值