Well it seems that although the install process was easy, actually going about and using Netbeans, Java, and GlassFish from the Ubuntu package repositories wasn't quite so.
As pointed out in one of the comments in the last post the versions available as Ubuntu packages are fairly old. So I had to go ahead, download & install the latest versions anyway.