文件夹错误在Mac上的MATLAB中设置WSDL
我正在尝试在 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)
如果我提供下载的软件包本身的路径,则会出现错误。
如果我提供从下载的 pkg
或 tar.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论