GithubHelp home page GithubHelp logo

bairyn / jruby-launcher-libjsig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jruby/jruby-launcher

0.0 1.0 0.0 574 KB

Fork for libjsig (mergeable/rebaseable branch: "libjsig"; jruby-launcher-libsjig gem branch: "gem-jruby-launcher-libjsig") - JRuby's native launcher executable

License: Other

Ruby 8.24% Makefile 15.77% C 19.05% C++ 54.30% Shell 2.65%

jruby-launcher-libjsig's Introduction

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.

jruby-launcher-libjsig's People

Contributors

nicksieger avatar vvs avatar banzaiman avatar headius avatar enebo avatar chrisseaton avatar tychobrailleur avatar vp-of-awesome avatar bkabrda avatar japgolly avatar calavera avatar dwaite avatar penberg avatar timhayman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.