openmrs standalone - Bad CPU type in executable

Tags: #<Tag:0x00007f828e09adb8>

I"m running JDK 8 on a 64 bit mac osx (10.15.7) and would like to use various standalones, in addition to sdk. sdk works fine, but the standalone won’t start due to the following issue - any help is appreciated. Barry

[MysqldResource] launching mysqld (driver_launched_mysqld_2) Exception in thread “driver_launched_mysqld_2” com.mysql.management.util.WrappedException: java.io.IOException: Cannot run program “/Users/barrylevine/OpenMRS/Openmrs2.10.standalone/referenceapplication-standalone-2.10.0/database/bin/mysqld”: error=86, Bad CPU type in executable at com.mysql.management.util.Exceptions.toRuntime(Exceptions.java:55) at com.mysql.management.util.Exceptions$Block.exec(Exceptions.java:89) at com.mysql.management.util.RuntimeI$Default.exec(RuntimeI.java:180) at com.mysql.management.util.Shell$Default.run(Shell.java:140) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Cannot run program “/Users/barrylevine/OpenMRS/Openmrs2.10.standalone/referenceapplication-standalone-2.10.0/database/bin/mysqld”: error=86, Bad CPU type in executable at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at java.lang.Runtime.exec(Runtime.java:620) at com.mysql.management.util.RuntimeI$Default$1.inner(RuntimeI.java:177) at com.mysql.management.util.Exceptions$Block.exec(Exceptions.java:86) … 3 more Caused by: java.io.IOException: error=86, Bad CPU type in executable at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) … 6 more

1 Like

Thanks much for your quick response…