There's no built in way to do this. You can, however, use external tools to archive this like OneJar:
http://one-jar.sourceforge.net/
Edit: Apparently this is even the way the Netbeans team expects you to do it: http://wiki.netbeans.org/PackagingADistributableJavaApp