title: How to update java version used by Jruby?
body: <p>I am really lost in these Java things. The <a href="http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html" rel="nofollow noreferrer">latest java versions</a> are announced in the Oracle website.</p>
  
  <p><img src="https://i.stack.imgur.com/Z92oZ.jpg" alt="enter image description here"></p>
  
  <p>And as you can see from the next screenshot, my current version is:</p>
  
  <p><img src="https://i.stack.imgur.com/7P6Ca.jpg" alt="enter image description here"></p>
  
  <p>Then, why is my Jruby not using this version and how can I force it to use the latest version installed on my machine?</p>
  
  <p><img src="https://i.stack.imgur.com/2ZIwa.png" alt="enter image description here"></p>
  
  <p>The reason I want to use the newest versions is that I have some <a href="https://stackoverflow.com/questions/12184111/jruby-on-rails-error-when-star-server-rails-s-command-is-used">issues</a> with</p>
  
  <pre><code>rails -s
  </code></pre>
  
  <p>command and one of the things that I have been advised was to upgrade my Java version.</p>