Does NetBeans need to be installed on the same production box as GlassFish for GlassFish to access NetBeans jar files?

This question was originally posed in this thread by a user who wondered how the GlassFish runtime accesses NetBeans jar files. The user has GlassFish in production and wanted to know if NetBeans needed to be installed on the same box.

John responded as follows:

"Assuming I understand what you are trying to do and given that your
GlassFish installation is in production, you should install NetBeans
on your non-production host (desktop) and deploy applications to the
GlassFish production instance.
This URL
should help you to point NetBeans to a GlassFish installation running on a different host from the
NetBeans installation."