java - Matlab 引擎:许可证检出失败
问题描述
我试图弄清楚为什么我在License Checkout Failed
从 Java 运行 Matlab 引擎时会得到一个。我有这个非常简单的 Matlab 脚本:
function [] = Test()
x = [1 2 3 4 5];
y = [ 4 6 8 5 3];
mdl = fitlm(x,y);
mdl
end
fitlm
需要Statistics_Toolbox。我可以在 Matlab(版本2019b)桌面应用程序中运行上述脚本而不会出现问题。但是当我通过 Matlab 引擎运行相同的脚本时,我得到了
Exception in thread "main" com.mathworks.engine.MatlabExecutionException: Test()
at com.mathworks.engine.FutureResult.get(FutureResult.java:64)
at com.mathworks.engine.MatlabEngine.eval(MatlabEngine.java:349)
at xxxxxxx.main(Test.kt:11)
Caused by: com.mathworks.mvm.exec.MvmRuntimeException: License checkout failed.
License Manager Error 0
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2019b/0
Diagnostic Information:
Feature: Statistics_Toolbox
License path: C:\Users\xxxx\AppData\Roaming\MathWorks\MATLAB\R2019b_licenses;C:\Program Files\MATLAB\R2019b\licenses\license.dat;C:\Program Files\MATLAB\R2019b\licenses\network.lic
Licensing error: 0,0.
... 3 more
com.mathworks.mvm.exec.MvmRuntimeException: License checkout failed.
License Manager Error 0
关于桌面应用程序和引擎之间的许可证签出过程可能会导致这种情况的任何想法?我唯一的想法可能是我的公司有一个代理服务器,并且想知道桌面应用程序是否知道引擎不知道的代理设置。
解决方案
推荐阅读
- php - Create temporary URL to download files
- cf-bosh - 使用 Bosh 在 virtualbox 上部署 CF 后,credhub 登录不起作用
- mysql - 从 MySQL 中提取数据以导入图表工具
- spring-boot - 春季批处理:从数据库中依次读取两次
- docker - 移除 Docker limit-cpu、limit-memory、reserve cpu 和 memory
- python-3.x - 使用 python3 脚本进行谷歌搜索
- java - TraceId 在通过 hystrix 命令的每个内部休息调用中都在变化
- java - 在调试期间显示项目,否则在 ListView 中不显示项目
- python - 无延迟地同时运行两个函数 Python
- javascript - 具有动态内容的角度通用更新元标记