First of all, I would like to ask you to correct your question if something better comes to your mind.
Take the Lift REST web service example from David Pollack's Simply Lift book here .
If I open the Windows console (Windows XP SP3, all updates, Oracle JDK 7) inside the directory and run "sbt" (sbt.bat), everything will be fine. But in case I try to do the same (but using "./sbt") on Linux (XUbuntu 11.10, OpenJDK 6, OpenJDK 7, Oracle JDK 7 (tried everything)), SBT returns (instead of switching to SBT console mode ), since he did the job. This means that the command can be simply ./sbt
immediately returned (after completion of automatic project maintenance) or there will be ./sbt jetty-run
- it simply starts the web server and immediately disconnects it.
In addition, the web service that I developed for my compilation project works fine on Windows, but cannot be compiled (using ./sbt compile
) on Linux (using the same version of SBT). The error "source file" /.../src/main/scala/code/lib/FooBar.scala;src/main/scala/bootstrap/liftweb/Boot.scala 'could not be found ", where" FooBar.scala " is an object in which I do all the services (directly called from Boot.scala).
Any ideas on what could be causing and how to fix it?
UPDATE: The cause of the first problem (SBT returning to the shell instead of offering the SBT console) it seems that the file was extracted from Windows and had CR + LF instead of just ending the LF line, Solving source files that were not found , just used the clean
command to recompile from scratch.
source share