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

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
or
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.