# Netbeans and Gems

**URL:** <https://www.ruby-forum.com/t/netbeans-and-gems/145611>\
**Category:** Ruby\
**Created:** [August 12, 2008, 4:26am UTC](https://www.ruby-forum.com/t/netbeans-and-gems/145611 "2008-08-12T04:26:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![delphiguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@delphiguy](https://www.ruby-forum.com/u/delphiguy)\
**Post date:** [August 12, 2008, 4:26am UTC](https://www.ruby-forum.com/t/netbeans-and-gems/145611/1 "2008-08-12T04:26:52Z")

</div>

Cheers,

Newbie here.

I’m trying to learn Ruby so I downloaded NetBeans 6.1 and give it a try,  
I must  
admit I kinda liked it. However, when trying to install Gems and/or  
Update them  
via Tools -\> Ruby Gems I always get stuck and given this message (see  
attachment).

What could be the problem here? Also, I noticed that Netbeans installs  
the Gems in  
a particular directory, can I copy this directory and apply it to my  
home pc so  
that I could get the Gems applied to it also? this is because I dont  
have an  
internet connection at home.

Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![delphiguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@delphiguy](https://www.ruby-forum.com/u/delphiguy)\
**Post date:** [August 12, 2008, 5:22am UTC](https://www.ruby-forum.com/t/netbeans-and-gems/145611/2 "2008-08-12T05:22:16Z")

</div>

Ok I tried installing Gems in the commandline but I get this error.

jruby -S gem install mysql  
JRuby limited openssl loaded. gem install jruby-openssl for full  
support.  
[http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL](http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL)  
Bulk updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Exception in thread “main” java.lang.OutOfMemoryError: Java heap space

Does this means that my Netbeans and/or JRuby is broken?

thanks

---

<div class="post-metadata">

**Author:** ![delphiguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@delphiguy](https://www.ruby-forum.com/u/delphiguy)\
**Post date:** [August 12, 2008, 10:25am UTC](https://www.ruby-forum.com/t/netbeans-and-gems/145611/3 "2008-08-12T10:25:42Z")

</div>

Randy Adanza wrote:

> […] when trying to install Gems and/or Update them via Tools →   
> Ruby Gems I always get stuck and given this message (see  
> attachment).

You are hitting older JRuby issue. See:

[http://wiki.netbeans.org/FaqRubyGemsOOME](http://wiki.netbeans.org/FaqRubyGemsOOME)

You will encounter this only with older JRuby, JRuby 1.1.3 and further  
bundles RubyGems 1.2.0 which does require much less memory.

You might either:

- switch to other platform (newer JRuby, MRI, Rubinius) in the Platform  
Manager
- increase the memory as described in the wiki.
- switch to NetBeans 6.5 dev build (which bundles JRuby 1.1.3):

[http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-StayingUpToDate](http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-StayingUpToDate)  
or  
[http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-HowDoIGetTheContinuousBuilds](http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-HowDoIGetTheContinuousBuilds)

[…]

> Also, I noticed that Netbeans installs the Gems in a particular  
> directory

NetBeans behaves exactly the same way as from the command-line wrt. to  
Gem Home, Gem Path, … RubyGems settings. You are using (bundled) JRuby  
which store its gems in the interpreters directory…

> , can I copy this directory and apply it to my home pc so  
> that I could get the Gems applied to it also?

…you might e.g. set GEM\_HOME (in Ruby Platform Manager) to:

/home/you/gem-repo

and move this repo to other machine and point the GEM\_HOME on that  
machine to it.

m.

---

<div class="post-metadata">

**Author:** ![delphiguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@delphiguy](https://www.ruby-forum.com/u/delphiguy)\
**Post date:** [August 12, 2008, 11:17am UTC](https://www.ruby-forum.com/t/netbeans-and-gems/145611/4 "2008-08-12T11:17:14Z")

</div>

Thanks for the reply, I will try that.
