Mac OS Catalina上启动Mule服务器时出现: mac bad cpu type in executable

最近正在学习Mule ESB, 但是在Mac上运行Mule之后得到下面的错误:

下载了3.9 和4.2都有相同的错误:

Running Mule...
/Users/********/Desktop/mule/mule-standalone-3.9.0-hf1/bin/./mule: line 499: /Users/******/Desktop/mule/mule-standalone-3.9.0-hf1/lib/boot/exec/wrapper-macosx-universal-32: Bad CPU type in executable

原因:

升级到Mac OS Catalina之后,与系统不兼容

解决方案:

  1. 从下面的地址下载Java service wrapper,选择64位 :
    http://wrapper.tanukisoftware.com/doc/english/download.jsp#stable

  2. 下载之后解压缩,复制lib目录下wrapper.jar和bin/目录下wrapper到你的Mule软件/lib/boot/exec/目录下, 移动之后把wrapper文件重命名为wrapper-macosx-universal-32

  3. 到Mule的bin目录下执行./mule. 如果遇到系统提示不信任需要到系统偏好设置中的安全性与隐私上修改.

  4. 成功运行了!!!

192:bin ***$ mule start
MULE_HOME is set to /Users/***/Desktop/mule/mule-standalone-3.9.0-hf2
Starting Mule...
192:bin ***$ mule status
MULE_HOME is set to /Users/***/Desktop/mule/mule-standalone-3.9.0-hf2
Mule is running (18746).

有问题可以给我留言哦

参考文档: https://stackoverflow.com/questions/37778728/run-mule-standalone-community-edition-on-windows-64-bit-machine

原文地址:https://www.cnblogs.com/sxyxhj/p/12640052.html