首页 \ 问答 \ 在没有matlab环境的情况下在java类中运行matlab函数(Run matlab function in java class in absence of matlab environment)

在没有matlab环境的情况下在java类中运行matlab函数(Run matlab function in java class in absence of matlab environment)

我想在java应用程序中使用matlab函数。 我在matlab中使用deploytool从我的函数创建java包。 现在,我该如何使用这个包? 只能在我的java项目中导入deploytool创建的jar文件并使用它的功能吗?

经过大量的谷歌搜索,我使用了这个动画,但在最后一步,我得到错误“无法加载文件”。

我也读过MatlabControl ,但在这个解决方案中,我们应该在我们的系统中使用matlab环境来运行java代码。 但我会在可能根本没有matlab的系统中运行我的最终应用程序。

所以我需要一个解决方案来在java类中运行matlab函数,即使没有matlab环境。


I want to use matlab function in java application. I create java package from my function by deploytool in matlab. Now, how can i use this package? Can only import the jar file created by deploytool in my java project and use its function?

After a lot of googling, I used this toturial but in the final step, i get error "could not load file".

Also i read about MatlabControl, but in this solution, we should have matlab environment in our system to java code running. But i will run my final app in systems that may not have matlab at all.

So i need a solution to run matlab function in java class even in absence of matlab environment.


原文:
更新时间:2022-07-30 22:07

最满意答案

您错误显示“Unknown host smslib.org”。 您还将您的存储库定义为

 <repository>
        <id>smslib</id>
        <url>http://smslib.org/maven2/v3</url>
  </repository>

请检查您是否可以访问smslib.org。


You error shows "Unknown host smslib.org". And you also defined your repository as

 <repository>
        <id>smslib</id>
        <url>http://smslib.org/maven2/v3</url>
  </repository>

Please check if you could reach smslib.org.

相关问答

更多
  • 转到mirror.olnevhost.net/pub/apache/maven/binaries/并检查最新的tar.gz文件是什么 假设它是例如apache-maven-3.2.1-bin.tar.gz,从命令行; 你应该能够简单地做到: wget http://mirror.olnevhost.net/pub/apache/maven/binaries/apache-maven-3.2.1-bin.tar.gz 然后继续安装它。 更新:添加完整的说明(从下面的评论复制) 从你想要提取maven的目录运 ...
  • 如果您仍然收到URL的错误,请尝试brew update ,然后再brew install maven 。 解决了我的问题。 If you are still getting errors with the url, try brew update and then brew install maven. Fixed the problem for me.
  • 你可以上传SpringBoot项目的pom.xml吗? 下面是例子。 还要确保自定义jar在你的本地maven仓库中。 项目一个pom.xml(添加下面的插件) org.springframework.boot spring-boot-maven-plugin 1.4.1.RELEASE
  • 在您的pom.xml ,将目标版本设置为至少1.5: org.apache.maven.plugins maven-compiler-plugin 2.0.2 1.5 1.5
  • Eclipse确实可以使用不同的过程来构建您的Maven项目。 Eclipse依赖于将它集成到Maven的M2Eclipse插件,默认情况下,使用嵌入式Maven安装,Eclipse Mars为3.3.9。 修复命令行问题 首先,你的POM声明 1.8 1.8 拥有两次具有相同值的元素并不是一个问题。 Maven将无视其中一个。 但是,这意味着
  • 该工件存在并可从Maven Central获得( org.apache.maven.maven-archiver 2.0.1 )。 您的Nexus镜像配置错误。 您应该通过Nexus Web界面进行调查,看看它为什么不从中央存储库中获取该工件。 That artifact exists and is available from Maven Central (org.apache.maven.maven-archiver 2.0.1). Your Nexus Mirror is misconfigured. ...
  • 我通过从屏幕截图1中的Installed JREs列表中删除Java SE 6来修复它。即使选择了8,它仍然因为某些原因使用了6。 I fixed it by deleting Java SE 6 from the Installed JREs list in screenshot 1. Even though 8 was selected, it was still using 6 for some reason.
  • 您可能使用了elasticbeanstalk原型。 一个简短的原因(因为你似乎只是学习Maven)是编辑你的pom并删除br.com.ingenieux groupId的部分。 希望能帮助到你 对于那些关心它为什么会失败的细节的人 自1.3.x版(几周前)发布以来,我们放弃了aws.accessKey和aws.secretKey的使用。 这些警告实际上是两年多了:) 原因:github上的许多项目泄露了AWS Keys 相反,将它们设置为环境变量(AWS_ACCESS_KEY_ID)和(A ...
  • 您要使用的原型不在maven中央存储库(回退消息)中。 Maven告诉你它无法执行原型生成目标,因为它无法找到原型。 我认为最好的方法是遵循该原型的说明: https : //github.com/kolorobot/spring-mvc-quickstart-archetype 您需要克隆存储库,执行maven clean install(将在本地maven存储库中安装该原型)。 然后原型可以正常使用。 如果原型在maven中心可用,则不需要此步骤。 The archetype you want to u ...
  • 您错误显示“Unknown host smslib.org”。 您还将您的存储库定义为 smslib http://smslib.org/maven2/v3 请检查您是否可以访问smslib.org。 You error shows "Unknown host smslib.org". And you also defined your repository as

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)