Intellij:“运行 Scala 控制台时出错:无法启动进程”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25919658/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Intellij: "Error running Scala Console: Cannot Start Process"
提问by ben rudgers
New install.
新安装。
Scala SBT project.
Scala SBT 项目。
Full message is:
完整信息是:
Error running Scala Console: Cannot start process, the working directory C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 13.1.4\jre\jre\bin does not exist
运行 Scala 控制台时出错:无法启动进程,工作目录 C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 13.1.4\jre\jre\bin 不存在
It would be nice to have the directory default to somewhere sensible in the current project...I think.
将目录默认为当前项目中某个合理的位置会很好......我认为。
回答by ben rudgers
From the application menu, selecting
Run -> Edit Configurationsopens theRun/Debug Configurationsdialog.In the left panel of the dialog, pick
Defaults -> Scala Console.In the
Working Directorytextbox, enter..
从应用程序菜单中,选择
Run -> Edit Configurations打开Run/Debug Configurations对话框。在对话框的左侧面板中,选择
Defaults -> Scala Console。在
Working Directory文本框中,输入.。
It would be great to set this as a default, because the tests also require the same manual settings.
将此设置为默认值会很棒,因为测试也需要相同的手动设置。

