0

尝试在 Aptana Studio 3 中打开终端时出现以下错误:此终端仿真器不起作用,因为找不到“bash”外壳。请更正问题并重新启动 IDE。

这是错误日志::

java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_ZW
Command-line arguments:  -os win32 -ws win32 -arch x86
!ENTRY com.aptana.terminal 1 0 2013-09-27 10:27:00.979
!MESSAGE Starting terminal process failed.
!STACK 1
org.eclipse.core.runtime.CoreException: Shell executable could not be found.
at com.aptana.core.ShellExecutable.getPath(ShellExecutable.java:113)
    at com.aptana.terminal.internal.configurations.WindowsMingwConfiguration.getCommandLine(WindowsMingwConfiguration.java:40)
    at com.aptana.terminal.internal.ProcessLauncher.launch(ProcessLauncher.java:38)
    at com.aptana.terminal.connector.LocalTerminalConnector.startProcess(LocalTerminalConnector.java:220)
    at com.aptana.terminal.connector.LocalTerminalConnector.access$0(LocalTerminalConnector.java:208)
    at com.aptana.terminal.connector.LocalTerminalConnector$1.run(LocalTerminalConnector.java:102)

!SUBENTRY 1 com.aptana.core 4 0 2013-09-27 10:27:00.980
!MESSAGE Shell executable could not be found.

!ENTRY org.eclipse.ui 4 0 2013-09-27 10:37:11.181
!MESSAGE Unhandled event loop exception
!STACK 0
org.jruby.exceptions.RaiseException: (Errno::EINVAL) =::
    at org.jruby.RubyHash.replace(org/jruby/RubyHash.java:1623)

有人可以告诉我如何解决吗?我尝试卸载 Aptana,然后再次安装,但同样的错误。

4

1 回答 1

0

看起来 bash 不在您的 PATH 变量中。转到Control Panel-> System-> Advanced system settings-> Environment variables,然后编辑 PATH 并将路径添加到您的 bash 可执行文件所在的位置。之后您需要重新启动 Aptana Studio。

于 2013-09-27T16:59:21.993 回答