Warning message running Play 2.5.x

前端 未结 3 630
走了就别回头了
走了就别回头了 2021-01-01 17:15

Whenever I run my application with activator run I get the following warning:

\"The system cannot find the file BIN_DIRECTORY\\..\\conf\\sbtconf         


        
3条回答
  •  臣服心动
    2021-01-01 17:45

    @ps0604 Firstly, you should follow James Higgins-Thomas's 2nd answer and edit the C:\your\path\to\activator-dist-1.3.10\bin\activator.bat file and add a closing % symbol

    set SBT_HOME=%BIN_DIRECTORY%
    

    Secondly, the sbtconfig.txt found in the Scala directory C:\Program Files\sbt\conf\ needs to be copied to C:\your\path\to\activator-dist-1.3.10\conf. The google posting is from 2013 - so I think it's a bit dated

    Mind you, I think that it's odd that the SBT_HOME variable would point to a directory in Activator. It might be better to have

    set SBT_HOME="c:\Program Files\sbt\"
    

    (I know it's hard coded - not the best)

    And then fix

    set FN="%SBT_HOME%\conf\sbtconfig.txt"
    

提交回复
热议问题