Note that there are some explanatory texts on larger screens.

plurals
  1. POCommand not found after installing jRuby gem
    primarykey
    data
    text
    <p>I am getting an issue trying to execute a command after installing a custom jRuby gem. In the gem I created, the Gemfile looks like below:</p> <pre><code>source "http://rubygems.org" gem 'archive-tar-minitar', '~&gt; 0.5.2' gem 'fastercsv', '~&gt; 1.5.4' gem 'rake', '~&gt; 0.9.2.2' gem 'liquid', '&gt;= 2.3.0' gem 'net-sftp', '&gt;=2.0.5' gem 'net-ssh', '&gt;=2.3.0' gem 'jruby-openssl', '&gt;=0.7.5' gem 'crypt', '~&gt;1.1.4' gem 'nokogiri', '1.5.2' </code></pre> <p>and the .gemspec file:</p> <pre><code>$:.push File.expand_path("../lib", __FILE__) require "example/version" require "rake" Gem::Specification.new do |s| s.name = "example" s.version = Example::VERSION s.platform = 'java' s.date = '2012-03-30' s.executables = ["load_csv_to_table"] s.rdoc_options = ["--charset=UTF-8"] s.add_dependency('bundler', '~&gt; 1.0') s.add_dependency('archive-tar-minitar', '~&gt; 0.5.2') s.add_dependency('liquid', '&gt;= 2.3.0') s.add_dependency('net-sftp', '&gt;=2.0.5') s.add_dependency('net-ssh', '&gt;=2.3.0') s.add_dependency('jruby-openssl', '&gt;=0.7.5') s.add_dependency('crypt', '~&gt;1.1.4') s.add_dependency('fastercsv', '~&gt; 1.5.4') s.add_dependency('json', '~&gt;1.6.6') s.add_dependency('nokogiri', '1.5.2') s.files = FileList['lib/**/*.rb', 'bin/*', 'vendor/java/**/*', 'resources/**/*'].to_a s.require_path = ['lib'] s.required_rubygems_version = "&gt;= 1.3.4" end </code></pre> <p>In the bin folder, I created a command called 'example':</p> <pre><code>#!/usr/bin/env jruby $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib') require 'example' require 'pp' pp "Example!!" </code></pre> <p>I installed the gem created in my local system with no errors (jruby -S gem install example-0.0.1-java.gem), but I when I try launch the command "example" the command doesn't seem to be found</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload