How to get path to jruby / warbler jar file

I am creating an application using JRuby and Warbler to package it. My problem is I want to get the path of the jar file that is currently running without writing java ...


source to share

1 answer

Does RbConfig::CONFIG["bindir"]

it have what you want?

$ java -cp Development/src/jruby/lib/jruby-complete.jar org.jruby.Main -e 'require "rbconfig"; p RbConfig::CONFIG["bindir"]'




All Articles