Re: [jruby-user] Re: How do I add something to the classpath in a JRuby on Rails app?
Keith Bennett <[email protected]> Sun, 09 Nov 2014 15:37:14 -0500
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <[email protected]> |
That looks a little strange to me...the CLASSPATH is intended to contain jar files or directories that contain Java code, not system executables. And when you say it doesn't work, what do you mean exactly? Do you get an error message, and if so, can you post it? - Keith Keith R. Bennett http://about.me/keithrbennett On 11/7/2014, 1:02 PM, Ariel Valentin wrote: > 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] <mailto:[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] > <mailto:[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 > > >