xitrum-framework / xitrum-new

Empty Xitrum project skeleton, like the one created by "rails new"
http://xitrum-framework.github.io/
21 stars 5 forks source link

script/runner Error: Could not find or load main class quickstart.Boot #13

Closed Parabellum1905y closed 8 years ago

Parabellum1905y commented 8 years ago

Hello ! when i've runned command: script/runner quickstart.Boot it returns Error: Could not find or load main class quickstart.Boot after small 'fixing' runner script, it works. I've added this string : ROOT_DIR="$ROOT_DIR/target/xitrum" before: cd "$ROOT_DIR"

ngocdaothanh commented 8 years ago

Hi. Thanks but this is not a bug.

It's because after running:

sbt/sbt xitrum-package

The directory target/xitrum will be created, and script/runner will be copied there. Then you run the script from the directory target/xitrum, not from the project source code root directory.

target/xitrum is intended to be self-contained. You can copy it to other machines to run (with script/runner).

ngocdaothanh commented 8 years ago

Trivia: "Xitrum" means "Les Schtroumpfs" or "The Smurfs", which means "everything" or "anything". So everything you need is already inside the directory target/xitrum. Just copy it to other machines to run.

Parabellum1905y commented 8 years ago

Ok, Sorry, its my error. Thank you for the answer