Skip to content

jruby/jruby-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0c382cb · Apr 12, 2025
Mar 31, 2025
Apr 8, 2025
Mar 31, 2025
Apr 12, 2025
Apr 13, 2010
Oct 10, 2012
Apr 3, 2025
Oct 16, 2009
Feb 24, 2010
Jul 9, 2021
Oct 16, 2009
Jun 27, 2013
Apr 12, 2025
Feb 11, 2013
Apr 3, 2025
Jan 1, 2010
Mar 19, 2014
Mar 15, 2021
Mar 15, 2021
Mar 20, 2020
Oct 21, 2009
Mar 31, 2025
Mar 15, 2017
Feb 20, 2013
Jan 28, 2010
Jan 24, 2013
Mar 20, 2020
Jan 4, 2012
Mar 20, 2020
Jul 25, 2013
Apr 12, 2025
Mar 31, 2025
Jun 7, 2021
Mar 31, 2021
Mar 20, 2020
Apr 12, 2025

Repository files navigation

JRuby Native Launcher

Motivation

Maintaning JRuby.BAT was, well, to put it mildly, unpleasant. We had tens of bugs due to BAT limitations, we had weird behaviors depending on the version of Windows, we had a bunch of regressions.

See http://jira.codehaus.org/browse/JRUBY-4100 for more details.

On UNIX platforms, we had problems because a shell-script can't be put as a path in the shebang and couldn't take arguments. (#!/usr/bin/env jruby -w)

We also wanted to DRY up argument handling, even if it meant ditching shell script and writing in lowest-common-denominator C++ (!).

Compile

On UNIX, you should be able to just type make and a jruby binary will be created in the project directory. Copy this to $JRUBY_HOME/bin (or wherever your jruby executable is installed). On Windows, you should also be able to type make if you have the MinGW compiler toolkit installed.

Or, open the project in Netbeans 6.8 (with C/C++ plugin installed). If Netbeans warns that no compilers found, follow the instructions and install the required compilers. Currenty, we support MinGW. More info here:

http://netbeans.org/community/releases/68/cpp-setup-instructions.html

Then, just build it, and you're ready to go. jruby.exe, jrubyw.exe and jruby.dll will be created, they need to be copied into $JRUBY_HOME/bin directory.

Both, 32-bit and 64-bit compilers are supported. Great version of 64-bit mingw can be found here: http://www.cadforte.com/system64.html

To build 64-bit version of the launcher, use the following from the command line:

make CONF=mingw64

Run

The launcher provides a great logger, use it like this:

jruby -Xtrace LOG_FILE.log ....

TODO

See TODO.txt file for things that need to be done before this launcher could replace jruby.bat.

Thanks

The original code is by Netbeans project.

License

Read the COPYING file.