I\'m using JSoup in my project and I\'ve declared the dependency in my POM
file. It compiles just fine and runs fine too, but only when I used the jar wit
Maven scope provided means the dependencies are included at compilation, but not on runtime. The container / run script is expected to include it explicitly, so I can see you're on the right track.
Other things you can check to fix the problem is:
export
command-cp
it might (or not) override the CLASSPATH environment variable