If you have a default NetBeans project, and you're launching it from NetBeans, then it's being launched by Ant, using the generated build script that's inside your project directory. To narrow down the problem, try launching the program yourself from the command line:
java acm.mamoth