rawr:bundle:exe fails

  3 posts   Feedicon  
Replies: 2 - Last Post: July 21, 2010 19:43
by: rogerdpack
showing 1 - 3 of 3
 
Posted: March 16, 2010 19:02 by phiggy

I'm just getting started with Monkeybars, Rawr and Jruby, and I can't get the monkeybars sample app to be packaged as a Windows exe. Am I missing something here?

phiggins@gravytrain ~/monkeybarsdemo $ jruby --version
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2010-03-15 6586) (Java HotSpot(TM) Client VM 1.6.0_18) [i386-java]

phiggins@gravytrain ~/monkeybarsdemo $ jgem list
*** LOCAL GEMS ***
jruby-openssl (0.6)
monkeybars (1.0.5)
rake (0.8.7)
rawr (1.3.9)
rubygems-update (1.3.6)
rubyzip (0.9.4)


phiggins@gravytrain ~ $ monkeybars monkeybarsdemo && cd monkeybarsdemo && jruby -S rake rawr:bundle:exe
Creating directory monkeybarsdemo
Running in jruby 1.4.0 (ruby 1.8.7 patchlevel 174) [i386-java]
write config file
Creating Rawr configuration file build_configuration.rb
build_configuration.rb
Creating Java class /home/phiggins/monkeybarsdemo/src/org/rubyforge/rawr/Main.java
Creating Rakefile ...
Downloading jruby-complete.jar. This may take a moment...
Copying monkeybars project structure
(in /home/phiggins/monkeybarsdemo)
Running in jruby 1.4.0 (ruby 1.8.7 patchlevel 174) [i386-java]
mkdir -p package/classes/java
javac -target 1.6 -cp lib/java/monkeybars-1.0.4.jar:lib/java/jruby-complete.jar:src:lib/ruby -sourcepath src:lib/ruby -d package/classes/java src/org/rubyforge/rawr/Main.java
mkdir -p package/classes/ruby
Compile src/resolver.rb into package/classes/ruby/resolver.class
java -jar lib/java/jruby-complete.jar -e require '/usr/share/jruby/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/jruby_batch_compiler'; Rawr::JRubyBatchCompiler.compile_argv src lib/ruby package/classes/ruby
files for src: 5
files for lib/ruby: 0
Compiling src/resolver.rb to class resolver
Compiling src/application_view.rb to class application_view
Compiling src/main.rb to class main
Compiling src/application_controller.rb to class application_controller
Compiling src/manifest.rb to class manifest
Copying non-source file lib/ruby/README.txt to package/classes/ruby/README.txt
cp lib/ruby/README.txt package/classes/ruby/README.txt
mkdir -p package/classes/META-INF
mkdir -p package/jar
=== Creating jar file: package/jar/monkeybarsdemo.jar
cp lib/java/monkeybars-1.0.4.jar package/jar/lib/java/monkeybars-1.0.4.jar
cp lib/java/jruby-complete.jar package/jar/lib/java/jruby-complete.jar
mkdir -p package/windows
Creating Windows application in package/jar/monkeybarsdemo.exe
call: java -jar "/usr/share/jruby/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/launch4j/launch4j.jar" "package/windows/configuration.xml"
java -jar "/usr/share/jruby/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/launch4j/launch4j.jar" "package/windows/configuration.xml"
launch4j: Compiling resources
launch4j: Linking
launch4j: /usr/share/jruby/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/launch4j/bin/ld: cannot open output file /home/phiggins/monkeybarsdemo/package/windows/package/windows/monkeybarsdemo.exe: No such file or directory
launch4j: net.sf.launch4j.ExecException: Exec failed(1): [Ljava.lang.String;@7ffe01
 
Posted: March 16, 2010 19:56 by phiggy

I thought that this line of the output looked funny because of the repeated "/package/windows/" directory name.

/bin/ld: cannot open output file /home/phiggins/monkeybarsdemo/package/windows/package/windows/monkeybarsdemo.exe: No such file or directory

I opened the "package/windows/configuration.xml" file and changed this line:

<outfile>package/windows/monkeybarsdemo.exe</outfile>

to:

<outfile>monkeybarsdemo.exe</outfile>

Rerunning the command that failed now works:

phiggins@gravytrain ~/monkeybarsdemo $ java -jar /usr/share/jruby/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/launch4j/launch4j.jar package/windows/configuration.xml 
launch4j: Compiling resources
launch4j: Linking
launch4j: Successfully created /home/phiggins/monkeybarsdemo/package/windows/monkeybarsdemo.exe

The original rake command still doesn't work though, so it must be overwriting that xml file I changed.

 
Posted: July 21, 2010 19:43 by rogerdpack
maybe repost it to the rawr group? http://monkeybars.rubyforge.org
Replies: 2 - Last Post: July 21, 2010 19:43
by: rogerdpack
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close