org.jruby
Class JarBootstrapMain
java.lang.Object
org.jruby.JarBootstrapMain
public class JarBootstrapMain
- extends java.lang.Object
A specialized "main" entry point that assumes it will run a specific file
(jar-bootstrap.rb) when launching. This allows modifying only the manifest's
Main-Class and adding this file to create a self-contained executable JRuby
application.
Example usage:
~/projects/jruby $ cp lib/jruby.jar myapp.jar
~/projects/jruby $ cat jar-bootstrap.rb
puts "hello"
~/projects/jruby $ jar ufe myapp.jar org.jruby.JarBootstrapMain jar-bootstrap.rb
~/projects/jruby $ java -jar myapp.jar
hello
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAR_BOOTSTRAP
public static final java.lang.String JAR_BOOTSTRAP
- See Also:
- Constant Field Values
JarBootstrapMain
public JarBootstrapMain()
main
public static void main(java.lang.String[] args)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.