文件夹错误在Mac上的MATLAB中设置WSDL

发布于 2025-01-18 11:01:38 字数 1289 浏览 0 评论 0原文

我正在尝试在 Mac 上的 Matlab 中设置 WSDL 工具(遵循本教程:https://www.mathworks.com/help/matlab/matlab_external/display-a-world-map.html)。

matlab.wsdl.setWSDLToolPath('JDK',jdk,'CXF',cxf) 函数需要获取 openJDK 和 Apache-CXF 的路径。我已经下载了这两个文件,但不确定 mac 上的正确路径应该是什么。 MathWorks 网站和论坛上提供的示例都有 PC 路径的示例,但在 Mac 上,我不清楚实际的程序文件是什么。

我收到以下错误:

Warning: The path '/opt/homebrew/Caskroom/adoptopenjdk8/8,292:b10/OpenJDK8U-jdk_x64_mac_hotspot_8u292b10.pkg' has been
saved but the folder was not found. 
> In matlab.wsdl.setWSDLToolPath (line 107) 
Warning: The path '/Users/bricehen/Downloads/apache-cxf-3.4.6.tar.gz' has been saved but the folder was not found. 
> In matlab.wsdl.setWSDLToolPath (line 107)

如果我提供下载的软件包本身的路径,则会出现错误。

如果我提供从下载的 pkgtar.gz 文件中获得的解压文件夹的路径,我会收到如下错误:

Error using matlab.wsdl.setWSDLToolPath>checkVersion (line 232)
The path '/opt/homebrew/Caskroom/adoptopenjdk8/8,292:b10' does not seem to be a JDK folder.

Error in matlab.wsdl.setWSDLToolPath (line 119)
                            checkVersion(path, 'java', 'JDK', '-version', ...

任何帮助将不胜感激!

I'm trying to set up WSDL tools in Matlab on a mac (following this tutorial: https://www.mathworks.com/help/matlab/matlab_external/display-a-world-map.html).

The matlab.wsdl.setWSDLToolPath('JDK',jdk,'CXF',cxf) function needs to get the path for both openJDK and Apache-CXF. I have downloaded both of these, but am unsure what the correct path should be on a mac. The examples provided on the MathWorks website and forums all have examples of paths for a PC, but on a mac it is not clear to me what the actual program file would be.

I get errors along the lines of these:

Warning: The path '/opt/homebrew/Caskroom/adoptopenjdk8/8,292:b10/OpenJDK8U-jdk_x64_mac_hotspot_8u292b10.pkg' has been
saved but the folder was not found. 
> In matlab.wsdl.setWSDLToolPath (line 107) 
Warning: The path '/Users/bricehen/Downloads/apache-cxf-3.4.6.tar.gz' has been saved but the folder was not found. 
> In matlab.wsdl.setWSDLToolPath (line 107)

This is the error if I provide the path to the downloaded packages themselves.

If I provide paths to the unpacked folders I get from the downloaded pkg or tar.gz files, I get errors along the lines of:

Error using matlab.wsdl.setWSDLToolPath>checkVersion (line 232)
The path '/opt/homebrew/Caskroom/adoptopenjdk8/8,292:b10' does not seem to be a JDK folder.

Error in matlab.wsdl.setWSDLToolPath (line 119)
                            checkVersion(path, 'java', 'JDK', '-version', ...

Any help would be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文