Metatron Chronicler wrote:
> I just mean that the jars my application needs are located in
> package/jar/lib and the application jar is in
> package/jar/application.jar. I was under the impression that the
> various package commands would include any required jars inside the
> resulting executable/jar. Is this not the case?
No. Existing jars are not repackaged.
Any resulting program is going to need to include jruby_complete.jar,
and often another jars (such as for Swing). These need to be included
with your application jar, as rawr does not rebuild existing jars into
new jar, bundled jars.
If you want to ship a single file you need to use some kind of installer
program, such as what you get if you run
rake rawr:bundle:exe
# Bundles the jar from rawr:jar into a
# native Windows application (.exe)
> I've also noticed that
> the resulting application jar does not include anything from lib/ruby.
> I was hoping to get everything including dependencies contained in a
> single jar file for distribution.
Does your build_configuration.rb file indicate that the files in
lib/ruby should be included?
For example:
c.source_dirs = ["lib/ruby", "src"]
James
--
jamesbritt.com - Live curious
justthebestparts.com - Feed your head
neurogami.com - Hack your world