You really shouldn't build anything in the default package. A lot of
Java systems will get annoyed at you if you do.
Complex Java applications are too much trouble to build using generic OS script files. I recommend that you use a tool designed specifically to do that sort of work, such as
Ant or Maven.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.