Top Description Fields Constructors Methods
org.jruby

public Class JarBootstrapMain

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

JAR_BOOTSTRAPback to summary
public static final String JAR_BOOTSTRAP

Constructor Detail

JarBootstrapMainback to summary
public JarBootstrapMain()

Method Detail

mainback to summary
public static void main(String[] args)