SBT在Play 2.6中创建Scala种子项目时找不到bash

SBT在Play 2.6中创建Scala种子项目时找不到bash,scala,playframework,window,playframework-2.6,Scala,Playframework,Window,Playframework 2.6,我正在尝试在Play2.6中创建一个新的scala种子项目。从play的网站上我可以看到,他们放弃了使用activator,转而使用sbt命令 我收到一条“bash”文件未找到消息(见下文),即使我在Windows上运行SBT。任何帮助都将不胜感激 我安装了SBT版本1.0.4 C:\test>sbt new playframework/play-scala-seed.g8 "C:\Users\pablo\.sbt\preloaded\org.scala-sbt\sbt\"1.0.4"\j

我正在尝试在Play2.6中创建一个新的scala种子项目。从play的网站上我可以看到,他们放弃了使用activator,转而使用sbt命令

我收到一条“bash”文件未找到消息(见下文),即使我在Windows上运行SBT。任何帮助都将不胜感激

我安装了SBT版本1.0.4

C:\test>sbt new playframework/play-scala-seed.g8
"C:\Users\pablo\.sbt\preloaded\org.scala-sbt\sbt\"1.0.4"\jars\sbt.jar"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Set current project to test (in build file:/C:/test/)
10:29:52.037 [main] ERROR org.eclipse.jgit.util.FS - Caught exception in FS.readPipe()
java.io.IOException: Cannot run program "bash" (in directory "C:\Users\pablo"): CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(Unknown Source) ~[?:1.8.0_151]
        at java.lang.Runtime.exec(Unknown Source) ~[?:1.8.0_151]
        at org.eclipse.jgit.util.FS.readPipe(FS.java:431) ~[?:?]
        at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113) ~[?:?]
        at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517) ~[?:?]
        at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92) ~[?:?]
        at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:171) ~[?:?]
        at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577) ~[?:?]
        at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:113) ~[?:?]
        at org.eclipse.jgit.api.CloneCommand.init(CloneCommand.java:161) ~[?:?]
        at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:132) ~[?:?]
        at giter8.JgitHelper$.clone(JgitHelper.scala:116) ~[?:?]
        at giter8.JgitHelper$.run(JgitHelper.scala:67) ~[?:?]
        at giter8.JgitHelper$.run(JgitHelper.scala:80) ~[?:?]
        at giter8.Giter8.$anonfun$run$2(giter8.scala:34) ~[?:?]
        at scala.Option.map(Option.scala:146) ~[scala-library.jar:1.0.2]
        at giter8.Giter8.run(giter8.scala:33) ~[?:?]
        at sbtgiter8resolver.Giter8TemplateResolver.run(Giter8TemplateResolver.scala:31) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
        at sbt.TemplateCommandUtil$.call(TemplateCommand.scala:93) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:71) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.TemplateCommandUtil$.$anonfun$run$1(TemplateCommand.scala:51) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.TemplateCommandUtil$.$anonfun$run$1$adapted(TemplateCommand.scala:47) ~[main_2.12-1.0.4.jar:1.0.4]
        at scala.collection.LinearSeqOptimized.find(LinearSeqOptimized.scala:111) ~[scala-library.jar:1.0.2]
        at scala.collection.LinearSeqOptimized.find$(LinearSeqOptimized.scala:108) ~[scala-library.jar:1.0.2]
        at scala.collection.immutable.List.find(List.scala:86) ~[scala-library.jar:1.0.2]
        at sbt.TemplateCommandUtil$.run(TemplateCommand.scala:47) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:34) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.TemplateCommandUtil$.$anonfun$templateCommand$2(TemplateCommand.scala:17) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.Command$.$anonfun$applyEffect$4(Command.scala:125) ~[command_2.12-1.0.4.jar:1.0.4]
        at sbt.Command$.$anonfun$applyEffect$2(Command.scala:121) ~[command_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.processCommand(MainLoop.scala:121) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:105) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.State$$anon$1.runCmd$1(State.scala:227) ~[command_2.12-1.0.4.jar:1.0.4]
        at sbt.State$$anon$1.process(State.scala:233) ~[command_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:105) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16) ~[util-control_2.12-1.0.3.jar:1.0.3]
        at sbt.MainLoop$.next(MainLoop.scala:105) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.run(MainLoop.scala:98) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:76) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.io.Using.apply(Using.scala:22) ~[io_2.12-1.0.2.jar:1.0.2]
        at sbt.MainLoop$.runWithNewLog(MainLoop.scala:70) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.runAndClearLast(MainLoop.scala:52) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:37) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.MainLoop$.runLogged(MainLoop.scala:29) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.StandardMain$.runManaged(Main.scala:104) ~[main_2.12-1.0.4.jar:1.0.4]
        at sbt.xMain.run(Main.scala:71) ~[main_2.12-1.0.4.jar:1.0.4]
        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) ~[?:?]
        at xsbt.boot.Launch$.withContextLoader(Launch.scala:128) ~[?:?]
        at xsbt.boot.Launch$.run(Launch.scala:109) ~[?:?]
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35) ~[?:?]
        at xsbt.boot.Launch$.launch(Launch.scala:117) ~[?:?]
        at xsbt.boot.Launch$.apply(Launch.scala:18) ~[?:?]
        at xsbt.boot.Boot$.runImpl(Boot.scala:41) ~[?:?]
        at xsbt.boot.Boot$.main(Boot.scala:17) ~[?:?]
        at xsbt.boot.Boot.main(Boot.scala) ~[?:?]
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method) ~[?:1.8.0_151]
        at java.lang.ProcessImpl.<init>(Unknown Source) ~[?:1.8.0_151]
        at java.lang.ProcessImpl.start(Unknown Source) ~[?:1.8.0_151]
        ... 59 more
C:\test>sbt新playframework/play-scala-seed.g8
C:\Users\pablo\.sbt\preload\org.scala sbt\sbt\“1.0.4”\jars\sbt.jar
Java HotSpot(TM)64位服务器VM警告:忽略选项MaxPermSize=256m;支持在8.0中被删除
[信息]将当前项目设置为测试(在生成文件中:/C:/test/)
10:29:52.037[main]ERROR org.eclipse.jgit.util.FS-在FS.readPipe()中捕获异常
java.io.IOException:无法运行程序“bash”(在目录“C:\Users\pablo”中):CreateProcess error=2,系统找不到指定的文件
在java.lang.ProcessBuilder.start(未知源代码)~[?:1.8.0_151]
在java.lang.Runtime.exec(未知源代码)~[?:1.8.0_151]
在org.eclipse.jgit.util.FS.readPipe(FS.java:431)~[?:?]
在org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113)~[?:?]
在org.eclipse.jgit.util.FS.gitPrefix(FS.java:517)~[?:?]
在org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92)~[?:?]
在org.eclipse.jgit.internal.storage.file.FileRepository.(FileRepository.java:171)~[?:?]
在org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577)~[?:?]
在org.eclipse.jgit.api.InitCommand.call(InitCommand.java:113)~[?:?]
在org.eclipse.jgit.api.CloneCommand.init(CloneCommand.java:161)~[?:?]
在org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:132)~[?:?]
在giter8.JgitHelper$.clone(JgitHelper.scala:116)~[?:?]
在giter8.JgitHelper$.run(JgitHelper.scala:67)~[?:?]
在giter8.JgitHelper$.run(JgitHelper.scala:80)~[?:?]
在giter8.giter8.anonfun$run$2(giter8.scala:34)~[?:?]
在scala.Option.map(Option.scala:146)~[scala library.jar:1.0.2]
在giter8.giter8.run(giter8.scala:33)~[?:?]
在sbtgiter8resolver.Giter8TemplateResolver.run(Giter8TemplateResolver.scala:31)~[?:?]
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)~[?:1.8.0_151]
在sun.reflect.NativeMethodAccessorImpl.invoke(未知源)~[?:1.8.0_151]
在sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)~[?:1.8.0_151]
在java.lang.reflect.Method.invoke(未知源代码)~[?:1.8.0_151]
在sbt.TemplateCommandUtil$.call(TemplateCommand.scala:93)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:71)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.TemplateCommandUtil$.$anonfun$run$1(TemplateCommand.scala:51)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.TemplateCommandUtil$.$anonfun$run$1$adapted(TemplateCommand.scala:47)~[main_2.12-1.0.4.jar:1.0.4]
在scala.collection.LinearSeqOptimized.find(LinearSeqOptimized.scala:111)~[scala library.jar:1.0.2]
在scala.collection.LinearSeqOptimized.find$(LinearSeqOptimized.scala:108)~[scala library.jar:1.0.2]
在scala.collection.immutable.List.find(List.scala:86)~[scala library.jar:1.0.2]
在sbt.TemplateCommandUtil$.run(TemplateCommand.scala:47)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:34)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.TemplateCommandUtil$.$anonfun$templateCommand$2(templateCommand.scala:17)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.Command$.$anonfun$applyEffect$4(Command.scala:125)~[Command_2.12-1.0.4.jar:1.0.4]
在sbt.Command$.$anonfun$applyEffect$2(Command.scala:121)~[Command_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.processCommand(MainLoop.scala:121)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:105)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.State$$anon$1.runCmd$1(State.scala:227)~[command_2.12-1.0.4.jar:1.0.4]
在sbt.State$$anon$1.process(State.scala:233)~[command_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:105)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)~[util-control_2.12-1.0.3.jar:1.0.3]
在sbt.MainLoop$.next(MainLoop.scala:105)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.run(MainLoop.scala:98)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:76)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.io.Using.apply(Using.scala:22)~[io_2.12-1.0.2.jar:1.0.2]
在sbt.MainLoop$.runWithNewLog(MainLoop.scala:70)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.runAndClearLast(MainLoop.scala:52)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.runLoggedLoop(MainLoop.scala:37)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.MainLoop$.runLogged(MainLoop.scala:29)~[main_2.12-1.0.4.jar:1.0.4]
在sbt.StandardMain$.runManaged(Main.scala:104)~[Main_2.12-1.0.4.jar:1.0.4]
在sbt.xMain.run(Main.scala:71)~[Main_2.12-1.0.4.jar:1.0.4]
在xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)~[?:?]
在xsbt.boot.Launch$.withContextLoader(Launch.scala:128)~[?:?]
在xsbt.boot.Launch$.run(Launch.scala:109)~[?:?]
在xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)~[?:?]
在xsbt.boot.Launch$.Launch(Launch.scala:117)~[?:?]
在xsbt.boot.Launch$.apply(Launch.scala:18)~[?:?]
在xsbt.boot.boot$.runImpl(boot.scala:41)~[?:?]
在xsbt.boot.boot$.main(boot.scala:17)~[?:?]
在xsbt.boot.boot.main(boot.scala)~[?:?]
原因:java.io.IOException:CreateProcess error=2,系统找不到指定的文件
在java.lang.ProcessImpl.create(本机方法)~[?:1.8.0_151]
A.
sbt.bat new playframework/play-scala-seed.g8