# Netbeans issue

**URL:** <https://www.ruby-forum.com/t/netbeans-issue/178279>\
**Category:** JRuby\
**Created:** [November 2, 2009, 2:42am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279 "2009-11-02T02:42:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [November 2, 2009, 2:42am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/1 "2009-11-02T02:42:50Z")

</div>

Hi,

Forgive me if this is the wrong place to ask this.

I’m a beginner learning Ruby and I’m trying to create a new Ruby on  
Rails  
application through Netbeans. I click File → new project → Ruby on  
Rails  
Application … you get the idea.

The problem is on the last dialog. I get an error that the Glassfish Gem  
is  
not installed and it won’t let me hit the finish button. There’s a  
button  
that says “Install Glassfish Gem” but running that gives me the  
following  
error:

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)  
ERROR: While executing gem … (IOError)  
Access is denied

Apparently the [wiki.jruby.org](http://wiki.jruby.org) site is down, and it cannot pull whatever  
it’s  
trying to pull off of there. What can I do to workaround? or is there a  
proper fix for this?

Thanks,

-Dan

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [November 2, 2009, 3:30am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/2 "2009-11-02T03:30:52Z")

</div>

The access denied seems to me to be a permission problem in copying  
some of the files… Although I’ve not used NetBeans recently so I’m  
not sure how you might sudo that checkbox to see if that helps…

Jay

On Sun, Nov 1, 2009 at 9:41 PM, Daniel R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> that says “Install Glassfish Gem” but running that gives me the following  
> trying to pull off of there. What can I do to workaround? or is there a  
> proper fix for this?
> 
> Thanks,
> 
> -Dan

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [November 2, 2009, 10:01am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/3 "2009-11-02T10:01:51Z")

</div>

Hi Daniel,

Seems to be an issue with permissions; please check that Gem Home for  
the bundled JRuby (i.e.  
\<nb\_install\_dir\>/ruby2/jruby-x.y.z/lib/ruby/gems/1.8) is writable by the  
current user. Did you install NetBeans as the same user you use for  
running it? Which version of NB do you use? (I’m asking since recently  
another user reported having the same issue with 6.8 Beta, which leads  
me to think that there might be some bug in the installer wrt. setting  
up permissions).

Erno

PS. There is also [http://forums.netbeans.org/ruby-users.html](http://forums.netbeans.org/ruby-users.html) for NB Ruby  
users.

Daniel R. wrote:

> There’s a button that says “Install Glassfish Gem” but running that  
> and it cannot pull whatever it’s trying to pull off of there. What can  
> I do to workaround? or is there a proper fix for this?
> 
> Thanks,
> 
> -Dan

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [November 2, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/4 "2009-11-02T16:09:28Z")

</div>

Hi,

I think this may be a Window 7 issue. I should have mentioned that’s  
what  
I’m running. I tried the same steps on OpenSolaris and it worked fine. I  
guess I’ll be switching to OpenSolaris for now. I’m not sure how  
permissions  
work (or don’t work;) in Windows in order to fix it.

Thanks,

-Dan

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 12, 2010, 1:40pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/5 "2010-03-12T13:40:34Z")

</div>

I have seen this problem in Windows 7.

A simple workaround, is to drag a shortcut for the command prompt to  
your  
desktop,  
right click it, and run it as admin.

You will have the rights to do any gem related activities.  
Its a kludge, but its easy to remember.

regards,  
Richard.

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 11, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/6 "2010-03-11T22:23:12Z")

</div>

Hi,

In case somebody comes around here wondering. The installer creates  
files and folders which cannot be modified by the current user. You have  
to change the permission and grant modification privileges to yourself  
in order to remove the error.

Just for information, I had this error while trying to install a gem in  
my jruby tree (“gem install” failed with “permission denied”).

–  
Pierre.

Daniel R. wrote:

> Hi,
> 
> I think this may be a Window 7 issue. I should have mentioned that’s  
> what  
> I’m running. I tried the same steps on OpenSolaris and it worked fine. I  
> guess I’ll be switching to OpenSolaris for now. I’m not sure how  
> permissions  
> work (or don’t work;) in Windows in order to fix it.
> 
> Thanks,
> 
> -Dan

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 15, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/7 "2010-03-15T19:02:17Z")

</div>

On Thu, Mar 11, 2010 at 3:23 PM, Pierre B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi,
> 
> In case somebody comes around here wondering. The installer creates  
> files and folders which cannot be modified by the current user. You have  
> to change the permission and grant modification privileges to yourself  
> in order to remove the error.

The JRuby installer or the NetBeans installer?

- Charlie

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 17, 2010, 1:50am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/8 "2010-03-17T01:50:39Z")

</div>

On Mon, Mar 15, 2010 at 6:00 PM, Charles Oliver N.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> - Charlie

The JRuby installer - i.e. system installed JRuby, not the JRuby that  
ships  
with Netbeans.

I have only seen the issue on windows 7.

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 17, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/9 "2010-03-17T22:06:51Z")

</div>

On Tue, Mar 16, 2010 at 6:50 PM, Richard C.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > in order to remove the error.
> > 
> > The JRuby installer or the NetBeans installer?
> > 
> > - Charlie
> 
> The JRuby installer - i.e. system installed JRuby, not the JRuby that ships  
> with Netbeans.  
> I have only seen the issue on windows 7.

I’m guessing that this isn’t typical for other programs’ installers?  
Are we setting permissions too strict?

- Charlie

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 18, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/10 "2010-03-18T16:41:55Z")

</div>

> > Are we setting permissions too strict?
> 
> Our installer does a system and not a user install. Apparently  
> windows 7 is ratcheting down stuff more than previous windows  
> releases. The obvious solution is to give the option between user and  
> system install. I don’t have Windows 7 but I am guessing that the user  
> will have access to all the installed files when it is a user install.  
> The other obvious solution is to only do a user install, but I  
> thought we picked system over user for a reason (like servers maybe).

FWIW, for the [http://rubyinstaller.org/](http://rubyinstaller.org/) we’re using Inno Setup and have  
recently moved to using the “lowest” setting as described (and may be  
relevant to JRuby)  
[Inno Setup Help](http://www.jrsoftware.org/ishelp/index.php?topic=setup_privilegesrequired)

Their description appears relevant to the JRuby situation.

BTW, we haven’t had any complaints yet with this behavior on Vista+ and  
I don’t think we have the file/folder modification issue either; you’ve  
got me interested and I’ll check.

Jon

p.s. - I have not upgraded to Windows 7 either, but my testing of the  
RubyInstaller’s on Vista from an Admin account using the above setting  
puts info under HKCU (user install) and doesn’t pop up the annoying UAC  
dialog during install. I also have logic that, for pre-Vista systems,  
will do system and user installs appropriate to the user installing.

I don’t know if it will be helpful with your Install4J installer, but  
feel free to browse through how we’re doing things at

[http://github.com/oneclick/rubyinstaller/blob/fake/resources/installer/util.iss](http://github.com/oneclick/rubyinstaller/blob/fake/resources/installer/util.iss)  
[http://github.com/oneclick/rubyinstaller/blob/fake/resources/installer/fake-rubyinstaller.iss](http://github.com/oneclick/rubyinstaller/blob/fake/resources/installer/fake-rubyinstaller.iss)

…and download my FakeRubyInstaller (testing installer) if you want to  
check out it’s installation behavior in a variety of situations:

[http://groups.google.com/group/rubyinstaller/browse\_thread/thread/40311e85b555f463](http://groups.google.com/group/rubyinstaller/browse_thread/thread/40311e85b555f463)

Maybe this will give some ideas on any needed JRuby installer  
updates…

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 18, 2010, 4:51pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/11 "2010-03-18T16:51:17Z")

</div>

hi,

I have win7 at home. Prepare a case and I can try it when I’m at home  
later.

kind regards,  
marco

Thomas E Enebo schrieb:

> > > > wrote:
> > > > 
> > > > - Charlie  
> > > > Our installer does a system and not a user install. Apparently  
> > > > Any Windows 7 folks in the know on this list?
> 
> -Tom

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email
```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 18, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/12 "2010-03-18T16:16:44Z")

</div>

On Wed, Mar 17, 2010 at 4:06 PM, Charles Oliver N.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > > files and folders which cannot be modified by the current user. You have  
> > > > I have only seen the issue on windows 7.
> 
> I’m guessing that this isn’t typical for other programs’ installers?  
> Are we setting permissions too strict?

Our installer does a system and not a user install. Apparently  
windows 7 is ratcheting down stuff more than previous windows  
releases. The obvious solution is to give the option between user and  
system install. I don’t have Windows 7 but I am guessing that the user  
will have access to all the installed files when it is a user install.  
The other obvious solution is to only do a user install, but I  
thought we picked system over user for a reason (like servers maybe).

The other option is to make the neccesary directories writable on  
install too…ick…

Any Windows 7 folks in the know on this list?

-Tom

–  
blog: [http://blog.enebo.com](http://blog.enebo.com) twitter: tom\_enebo  
mail: removed\_email\_address@domain.invalid

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 18, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/13 "2010-03-18T20:56:38Z")

</div>

> > > > > > In case somebody comes around here wondering. The installer creates  
> > > > > > files and folders which cannot be modified by the current user. You have  
> > > > > > to change the permission and grant modification privileges to yourself  
> > > > > > in order to remove the error.

Is the above behavior only for JRuby installs to the default “C:\Program  
Files\jruby-1.4.0” dir but not for installs to say “C:\jruby-1.4.0”

If it’s just for installs under “C:\Program Files” the protection  
requiring elevation is expected due to Vista’s combined UAC,  
virtualization, and protected location behavior.

> **[Deployment Solution - Symantec Enterprise](https://community.broadcom.com/symantecenterprise/communities/community-home/librarydocuments/viewdocument?DocumentKey=378d2aac-d2ae-46ad-aa0f-296e7447ba1b&CommunityKey=e2fbb15e-15c3-430b-97f3-4871e488162b&tab=librarydocuments)**
>
> View the selected document's details

> **[Understanding and Configuring User Account Control in Windows Vista](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc709628(v=ws.10)?redirectedfrom=MSDN)**

On my Vista machine, when I installed to “c:\jruby-1.4.0” I was able to  
manually delete subdirs and files without the popup. When installed to  
“C:\Program Files\jruby-1.4.0” I got a popup when trying to delete files  
and folders.

Will be interesting to hear what Marco discovers on his Windows 7 box.

Jon

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 19, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/14 "2010-03-19T22:58:23Z")

</div>

On Fri, Mar 19, 2010 at 4:04 PM, Jon [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Is the above behavior only for JRuby installs to the default “C:\Program Files\jruby-1.4.0” dir but not for installs to say “C:\jruby-1.4.0”
> 
> FYI, we’re moving away from officially supporting installs to “C:\Program Files” subdirs for multiple reasons…see the last 6 or 7 entries of:
> 
> [http://groups.google.com/group/rubyinstaller/browse\_thread/thread/40311e85b555f463](http://groups.google.com/group/rubyinstaller/browse_thread/thread/40311e85b555f463)

Yeah, I remember we discussed this wrt to jruby installer and the  
agreement was _not_ use “Program Files” location by default. Instead,  
we probably should use C:\jruby\1.5 or C:\jruby-1.5 and warn users not  
to use paths with spaces.

Thanks,  
–Vladimir

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 19, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/15 "2010-03-19T16:05:40Z")

</div>

> Is the above behavior only for JRuby installs to the default “C:\Program Files\jruby-1.4.0” dir but not for installs to say “C:\jruby-1.4.0”

FYI, we’re moving away from officially supporting installs to  
“C:\Program Files” subdirs for multiple reasons…see the last 6 or 7  
entries of:

[http://groups.google.com/group/rubyinstaller/browse\_thread/thread/40311e85b555f463](http://groups.google.com/group/rubyinstaller/browse_thread/thread/40311e85b555f463)

Jon

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 20, 2010, 12:20am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/16 "2010-03-20T00:20:18Z")

</div>

On Fri, Mar 19, 2010 at 4:57 PM, Vladimir S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> to use paths with spaces.  
> One problem I know of is that default Windows security settings don’t  
> (or at least didn’t used to) allow non-administrators to install  
> anywhere _but_ Program Files subdirectories. You could argue that  
> “well, you should just have administrator privileges” but I’ve  
> actually worked places where they fought tooth and nail to keep devs  
> from having full admin access. The Program Files hassle is a way of  
> life on Windows…sucks but true ☹

- Charlie

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 22, 2010, 9:19am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/17 "2010-03-22T09:19:36Z")

</div>

On Sat, Mar 20, 2010 at 3:17 AM, Vladimir S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Actually, on Windows Vista and Windows 7 this is an opposite for  
> directories: one can easily create directories on C:, _but_ can’t  
> create them in “Program Files”. For files, there are a bit different  
> rules (which involve “virtualization”).  
> …  
> So, for JRuby installer, it is no problem at all to create C:\JRuby  
> without requiring admin rights, while for installing in Program Files,  
> it seems, on need admin rights, and for gem installs in that directory  
> one need admin rights as well, not to mention the path with spaces.
> 
> Hence, if I’m not missing something obvious, installing into C:\JRuby  
> solves all our problems.

Ok, if that’s true, then it’s a great turn of affairs 🙂 I have no  
objection, if it makes things easier.

- Charlie

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [March 20, 2010, 9:18am UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/18 "2010-03-20T09:18:04Z")

</div>

Hi,

On Sat, Mar 20, 2010 at 12:19 AM, Charles Oliver N.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> One problem I know of is that default Windows security settings don’t  
> (or at least didn’t used to) allow non-administrators to install  
> anywhere _but_ Program Files subdirectories.

Actually, on Windows Vista and Windows 7 this is an opposite for  
directories: one can easily create directories on C:, _but_ can’t  
create them in “Program Files”. For files, there are a bit different  
rules (which involve “virtualization”).

Here’s what I see on my box:

C:\>mkdir directory

C:\>touch file

C:\>cd “Program Files”

C:\Program Files\>mkdir directory  
Access is denied.

C:\Program Files\>touch file

So, for JRuby installer, it is no problem at all to create C:\JRuby  
without requiring admin rights, while for installing in Program Files,  
it seems, on need admin rights, and for gem installs in that directory  
one need admin rights as well, not to mention the path with spaces.

Hence, if I’m not missing something obvious, installing into C:\JRuby  
solves all our problems.

Thanks,  
–Vladimir

> [http://xircles.codehaus.org/manage\_email](http://xircles.codehaus.org/manage_email)

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [April 12, 2010, 10:36pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/19 "2010-04-12T22:36:03Z")

</div>

Had the same problem with the following config: Win7, NetBeans 6.8,  
JRuby shipped with NetBeans.

Solution:  
Run your NetBeans as administrator. It will give admin privileges to  
JRuby gems installer.

Worked for me.  
Hope it will help…

-Philippe

---

<div class="post-metadata">

**Author:** ![danielr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f17d59/32.png) [@danielr](https://www.ruby-forum.com/u/danielr)\
**Post date:** [April 16, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/netbeans-issue/178279/20 "2010-04-16T12:30:08Z")

</div>

Philippe Rubyeye wrote:

> Had the same problem with the following config: Win7, NetBeans 6.8,  
> JRuby shipped with NetBeans.
> 
> Solution:  
> Run your NetBeans as administrator. It will give admin privileges to  
> JRuby gems installer.
> 
> Worked for me.  
> Hope it will help…
> 
> -Philippe

Thanks Philippe !  
Rajiv
