Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning message running Play 2.5.x

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

"The system cannot find the file BIN_DIRECTORY\..\conf\sbtconfig.txt"

What does this message mean? Should I create this file? The application works fine.

like image 654
ps0604 Avatar asked Apr 27 '16 02:04

ps0604


2 Answers

@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"
like image 68
mycowan Avatar answered Dec 31 '22 22:12

mycowan


Fix activator.bat

In addition to fixing the missing % after %BIN_DIRECTORY

set SBT_HOME=%BIN_DIRECTORY%

I also had to add quotes arround it in

for %%D in ("%BIN_DIRECTORY%") do

I put all my java in Program Files which contains a space..... The old drama still around every now an then....

But now it starts :)

[info] play - Application started (Prod)
[info] play - Listening for HTTP on /127.0.0.1:8888
[info] a.e.s.Slf4jLogger - Slf4jLogger started
like image 43
U.V. Avatar answered Dec 31 '22 22:12

U.V.