Heres a link from my bookmarks that should help you:
http://www.red3d.com/cwr/steer/

It's got a bunch of pathfinding techniques that it explains and demonstrates how they work with Java applets.