You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用rmic生成RMI存根与骨架时遇Java Runtime定位错误的解决求助

rmic生成RMI存根与骨架时遇Java Runtime定位错误的解决求助

各位好,我正在学习Java的RMI(远程方法调用),跟着教程一步步操作,到第三步需要用rmic工具生成存根和骨架的时候,遇到了报错:

"The operation couldn’t be completed. Unable to locate a Java Runtime that supports rmic. Please visit http://www.java.com for information on installing Java."

我用的是MacOS 13.2.1系统,一开始以为是JDK版本不兼容,特意安装了JDK 21,但重新运行rmic还是出现同样的错误。有没有朋友遇到过类似的问题?麻烦给点解决思路,谢谢啦!

备注:内容来源于stack exchange,提问作者ninjarubberband

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 10:32:56