Java Heroku和GIT的批处理文件不工作

Java Heroku和GIT的批处理文件不工作,java,git,heroku,Java,Git,Heroku,我是GIT和heroku的新手 $ sh target\bin\worker.bat sh: targetbinworker.bat: No such file or directory. 我哪里出错了?看起来您在linux控制台上使用了反斜杠。 试一试 sh target/bin/worker.bat (这可能也不起作用,因为.bat是windows扩展; 有没有像target/bin/worker.sh这样的东西?Unix shell不理解Windows批处理文件,或者反斜杠作为路径分隔符

我是GIT和heroku的新手

$ sh target\bin\worker.bat
sh: targetbinworker.bat: No such file or directory.

我哪里出错了?

看起来您在linux控制台上使用了反斜杠。 试一试

sh target/bin/worker.bat

(这可能也不起作用,因为.bat是windows扩展;
有没有像target/bin/worker.sh这样的东西?

Unix shell不理解Windows批处理文件,或者反斜杠作为路径分隔符。尝试打开Windows命令提示符并在其中运行
target\bin\worker.bat

???请发布更多信息,你是在使用cygwin还是类似的东西?那么我的评论仍然适用。或者为什么在windows计算机上调用sh?当我使用cmd$sh target/bin/worker.bat时,em获取此target/bin/worker.bat:第1行:@REM:command not found target/bin/worker.bat:2行:@REM:command not found target/bin/worker.bat:3行:@REM:command not found target/bin/worker.bat:4行:语法错误近乎意外token
('target/bin/worker.bat:第4行:
@REM根据Apache许可证2.0版(“许可证”)获得许可;'fablife friend实际上我已经在我的系统(Windows平台)中安装了GIT,并且在那里我使用了dat cmd!