Now, what exactly does your question has to do with the OCMJD certification? Before posting your question, CarefullyChooseOneForum.
The thing is, it is pretty likely that the dependencies are not in your classpath when you execute your program. Include all the dependencies when you run your program, like this: java -cp <path_do_a_dependency>/dependency.jar.
telling us what the error is "like" doesn't help. Programming and computers are EXTREMELY precise in what they do, need, and mean. You have to TellTheDetails if you really expect help. Otherwise, we will be making assumptions and guesses as to what the problem is, which 99% of the time will be wrong.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Curse your sudden but inevitable betrayal! And this tiny ad too!