Re: [Lift] 'sbt' is not recognized as an internal or external command, operable program or batch file.

3,671 views
Skip to first unread message

Jeppe Nejsum Madsen

unread,
Jul 4, 2012, 10:28:18 AM7/4/12
to lif...@googlegroups.com
On Wed, Jul 4, 2012 at 1:48 PM, benny <ceddl...@googlemail.com> wrote:
> Hi
>
> I am obviously very new to Lift, scala and even Java, but I am an
> experienced developer in other Arenas.
>
> This is probably a very stupid question, but does anyone know why I get this
> output
>
> 'sbt' is not recognized as an internal or external command, operable program
> or batch file.
>
> When running "C:\SourceLocalFiddling\dpp-simply_lift-69523f2\chat>sbt update
> ~jetty-run" at the command prompt in windows (which is what the getting
> started documentation recommends)
>
> there is a sbt file in the chat directory, but it has no file extension. I
> tried giving it a ".exe" extension but got the same message.

The sbt file is a shell script for unix-style systems. On windows,
look for a .bat/.cmd file, or create one based on the contents of the
"sbt" file....

Not sure what version of sbt is used in simply-lift, but alternatively
you can install the correct sbt version
/Jeppe

Florian Heinisch

unread,
Jul 4, 2012, 10:36:21 AM7/4/12
to lif...@googlegroups.com
As Jeppe mentioned, if you got the sbt file from https://github.com/dpp/simply_lift/tree/master/chat then it is for *nix systems.
For windows, in the chat folder create a file sbt.bat and paste following two lines:
set SCRIPT_DIR=%~dp0
java -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512m -Xmx512M -Xss2M -jar "%SCRIPT_DIR%\sbt-launcher.jar" %*

On 4 Jul 2012, at 13:48 , benny wrote:

> Hi
>
> I am obviously very new to Lift, scala and even Java, but I am an experienced developer in other Arenas.
>
> This is probably a very stupid question, but does anyone know why I get this output
>
> 'sbt' is not recognized as an internal or external command, operable program or batch file.
>
> When running "C:\SourceLocalFiddling\dpp-simply_lift-69523f2\chat>sbt update ~jetty-run" at the command prompt in windows (which is what the getting started documentation recommends)
>
> there is a sbt file in the chat directory, but it has no file extension. I tried giving it a ".exe" extension but got the same message.
>
> Thanks
>
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

David Pollak

unread,
Jul 4, 2012, 11:23:33 AM7/4/12
to lif...@googlegroups.com
The issue is that there's no parallel "sbt.bat" script in the directory.  Not being a windows guy, I don't always put .bat files around... I'll open a ticket and see what I can do.  In the mean time, you can take the sbt file and convert it into an sbt.bat file, converting shell script stuff into batch file stuff to get going.

Thanks,

David


On Wed, Jul 4, 2012 at 4:48 AM, benny <ceddl...@googlemail.com> wrote:
Hi

I am obviously very new to Lift, scala and even Java, but I am an experienced developer in other Arenas.

This is probably a very stupid question, but does anyone know why I get this output

'sbt' is not recognized as an internal or external command, operable program or batch file.

When running "C:\SourceLocalFiddling\dpp-simply_lift-69523f2\chat>sbt update ~jetty-run" at the command prompt in windows (which is what the getting started documentation recommends)

there is a sbt file  in the chat directory, but it has no file extension. I tried giving it a ".exe" extension but got the same message.

Thanks

--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code



--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net
Reply all
Reply to author
Forward
0 new messages