Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-web application with JRuby Warbler

How can I compile a JRuby app using Warbler that isn't on the web at all? This is always what happens when I try:

$ warble
warble aborted!
No executable script found

Tasks: TOP => jar:files
(See full trace by running task with --trace)

I must be using this incorrectly. Anyone know how to compile JRuby app correctly?

like image 457
Jwosty Avatar asked Mar 08 '12 23:03

Jwosty


2 Answers

warble documentation implies one of two constraints:

  1. either a bin directory with the scripts and a lib directory with dependencies, or
  2. a .gemspec file with the required information to assemble the jar

I mention this because the tutorial you linked follows none of those conditions.

like image 156
madth3 Avatar answered Sep 20 '22 03:09

madth3


Warbler can create a jar file, even though its main focus is to create a war.

In addition to warbler, take a look at the rawr gem, https://github.com/rawr/rawr If you are trying to create a standalone app that does not involve a web application server, then rawr may be simpler to use, but the commenters pointed out -- warbler does a better job at packaging dependencies and rawr does not support bundler.

like image 45
Alex Blakemore Avatar answered Sep 24 '22 03:09

Alex Blakemore