title: Eclipse (on OS X 10.9) defaulting to built-in Ruby 2.0 but need 1.8.7
body: <p>On my MacBook Pro with OS X 10.9 (Mavericks) installed, Eclipse is stuck on using the built-in Ruby 2.0.0 which breaks the ruby script I use as part of my build.</p>
  
  <p><strong>What I've done</strong></p>
  
  <ul>
  <li>I've used rvm and installed 1.8.7</li>
  <li>I've updated ~/.bash_profile to include <code>rvm use 1.8.7</code></li>
  <li>In Project Properties -> Builders -> The ruby script has an entry: <em>Location</em> indicates where the script it, <em>Working Directory</em> indicates the folder that contains the source data and where the processed data will be saved in, <em>Arguments</em> is the command-line arguments</li>
  </ul>
  
  <p><strong>What I'm getting</strong></p>
  
  <ul>
  <li><p>When I open a new bash terminal I see the message <code>Using ~/.rvm/gems/ruby-1.8.7-p374</code></p></li>
  <li><p>When Eclipse shows the error in the console window, it shows :
  <code>/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in "require": cannot load such file -- plist (LoadError)
  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in "require"
  from .....</code></p></li>
  <li><p>When I execute the ruby script from a terminal, it executes just fine.</p></li>
  </ul>
  
  <p><strong>Problem</strong></p>
  
  <ul>
  <li>It seems that Eclipse isn't using the ruby 1.8.7 that I've installed - how can I change that ?</li>
  </ul>
  
  <p><strong>EDIT... my ~/.bash_profile is as follows :</strong></p>
  
  <pre><code>export PATH=$PATH:/Android/adt-bundle-mac-x86_64-20131030/sdk/tools
  export PATH=$PATH:/usr/local/bin:$PATH #sublime
  export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
  
  [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
  rvm use 1.8.7-p374
  </code></pre>