This is a common nightmare in android. The licenses have the same filenames, so you can’t include them all; but if you exclude them some people could claim that you violate the agreements by doing so.
Here is a quick way to setup a REST web service with Netbeans native project (without using maven or gradle).
The following instructions do not setup JPA, DAO etc. Goal is only to setup a jersey service.