Re: [jruby-user] Re: How do I add something to the classpath in a JRuby on Rails app?

Ariel Valentin <[email protected]> Fri, 7 Nov 2014 13:02:28 -0500
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAKthdGgWNkL6o788Namx_dRtJ78s_TcecnW73TQzDdB=FqDX3w@mail.gmail.com>
I believe they are just asking you to add the bin to the path so it is
available in your users shell.
E.g. If I want to add all of the commands from an SDK  to my users unix
PATH I can do this:

$> export PATH=$PATH:/usr/lib/sdk/bin

Then when I try to auto-complete or execute a command they will be
available to my current shell. How do you anticipate using this SDK from
your Ruby program? Do you want to execute the program using Kernel? e.g.
`compiler a.file`


Ariel Valentin
e-mail: [email protected]
website: http://blog.arielvalentin.com
skype: ariel.s.valentin
twitter: arielvalentin
linkedin: http://www.linkedin.com/profile/view?id=8996534
---------------------------------------
*simplicity *communication
*feedback *courage *respect

On Fri, Nov 7, 2014 at 12:52 PM, David Maxwell <[email protected]> wrote:

> Bump for help!
>
> I've tried adding this to config/environment.rb
>
> require 'java'
> $CLASSPATH << "lib/sdk/bin/"
>
> and I've tried a few different combinations of this but it doesn't seem
> to work.
>
> I think maybe I just don't really understand what the CLASSPATH is
> exactly.. is it a property of the system, or the app? Any help or an
> explanation would be appreciated!
>
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>