Skip to content

Instantly share code, notes, and snippets.

@phiggins
Created March 15, 2010 05:09
Show Gist options
  • Save phiggins/332543 to your computer and use it in GitHub Desktop.
Save phiggins/332543 to your computer and use it in GitHub Desktop.
configuration do |c|
c.project_name = "HelloRawr"
c.output_dir = 'package'
c.main_ruby_file = 'hello'
c.source_dirs = ['lib']
c.source_exclude_filter = []
c.compile_ruby_files = true
c.target_jvm_version = 1.5
c.java_lib_dirs = ['lib/java']
c.windows_icon_path = File.expand_path("llama-blue.ico")
end
require 'sinatra'
get "/" do
"Hello world!"
end
phiggins@lihnucks ~/work/hello_rawr $ ~/.multiruby/install/jruby-1.4.0/bin/ruby -r rubygems -S rake rawr:bundle:exe
(in /home/phiggins/work/hello_rawr)
Running in jruby 1.4.0 (ruby 1.8.7 patchlevel 174) [amd64-java]
mkdir -p package/classes/ruby
Compile lib/hello.rb into package/classes/ruby/hello.class
java -jar lib/java/jruby-complete.jar -e require '/home/phiggins/.multiruby/install/jruby-1.4.0/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/jruby_batch_compiler'; Rawr::JRubyBatchCompiler.compile_argv lib package/classes/ruby
files for lib: 1
Compiling lib/hello.rb to class hello
mkdir -p package/classes/ruby/java
Copying non-source file lib/java/jruby-complete.jar to package/classes/ruby/java/jruby-complete.jar
cp lib/java/jruby-complete.jar package/classes/ruby/java/jruby-complete.jar
mkdir -p package/classes/META-INF
mkdir -p package/jar
=== Creating jar file: package/jar/HelloRawr.jar
cp lib/java/jruby-complete.jar package/jar/lib/java/jruby-complete.jar
mkdir -p package/windows
Creating Windows application in package/jar/HelloRawr.exe
call: java -jar "/home/phiggins/.multiruby/install/jruby-1.4.0/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/launch4j/launch4j.jar" "package/windows/configuration.xml"
java -jar "/home/phiggins/.multiruby/install/jruby-1.4.0/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/launch4j/launch4j.jar" "package/windows/configuration.xml"
launch4j: Compiling resources
launch4j: Linking
launch4j: /home/phiggins/.multiruby/install/jruby-1.4.0/lib/ruby/gems/1.8/gems/rawr-1.3.9/lib/launch4j/bin/ld: cannot open output file /home/phiggins/work/hello_rawr/package/windows/package/windows/HelloRawr.exe: No such file or directory
launch4j: net.sf.launch4j.ExecException: Exec failed(1): [Ljava.lang.String;@5430d082
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment