Spark logout on MacOS error

Dear All,

I’m trying to develop a customize Spark on MacOS.

I’ve found a problem which is when i press the logout, it will show “Your connection was closed due to an error”

I checed the log file on the menu, and it said

严重: Error trying to restart application with script

java.io.IOException: Cannot run program “open”: error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

at java.lang.Runtime.exec(Runtime.java:620)

at java.lang.Runtime.exec(Runtime.java:485)

at org.jivesoftware.MainWindow.restartApplicationWithScript(MainWindow.java:439)

at org.jivesoftware.MainWindow.closeConnectionAndInvoke(MainWindow.java:362)

at org.jivesoftware.MainWindow.logout(MainWindow.java:333)

at org.jivesoftware.MainWindow.lambda$buildMenu$1(MainWindow.java:525)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.AbstractButton.doClick(AbstractButton.java:376)

at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125)

at java.awt.MenuItem.processActionEvent(MenuItem.java:669)

at java.awt.MenuItem.processEvent(MenuItem.java:628)

at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:351)

at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:339)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:76)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:86)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.awt.EventQueue$4.run(EventQueue.java:729)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(P rotectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:20 1)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:10 5)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Caused by: java.io.IOException: error=2, No such file or directory

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.(UNIXProcess.java:248)

at java.lang.ProcessImpl.start(ProcessImpl.java:134)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

… 34 more

BTW, I run the application in Eclipse is fine, but run in app which has installed will get this error.

Is any one face the same problem and can give me a hint to solve this

Thanks in advance

Allen