I had the same headache, and finally spent an hour reading java docs and experimenting with the classpath. It's straightforward once you do that. Learning maven on the other hand ... :/
But, if you must, use Ant and forget about Maven - way more complex than it needs to be. And, again, if dependency management is a must, look at Ivy.