Warning message running Play 2.5.x

前端 未结 3 636
走了就别回头了
走了就别回头了 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:57

    @Haim Raman. Or you could just leave the set SBT_HOME=%BIN_DIRECTORY% and rather define your sbtconfig.txt file location in the same activator.bat file.

    i.e. pathToactivatorfolder/bin/activator.bat

    So let's say if your activator is installed in "C:\activator" you do that by changing the line:
    set FN=%SBT_HOME%..\conf\sbtconfig.txt.

    To : set FN=%SBT_HOME%\..\..\pathTosbtfolder\conf\sbtconfig.txt

    So let's say if your sbt is installed in "C:\Program Files (x86)\sbt" (remember activator is installed in "C:\activator")

    then your settings will look like this:
    set FN=%SBT_HOME%\..\..\Program Files (x86)\sbt\conf\sbtconfig.txt
    Note that \..\..\ just means going up two directories. So you can always define your sbtconfig.txt location relative to your activator install path.

提交回复
热议问题