Well, it seems this was 100 times easier than I thought it was!
For Java:
- Go to the root folder of your NetBeans project, where you should see a "build.xml"
- in the console, simply type `ant deploy` without the quotes
It's that easy! At least I think so; I need to try it in the lab on Monday. But it appears to be giving me the EXACT same output that the stdout console of NetBeans does after I tell it to Build the project!