此文对于java程序运行的路径讲的相当清楚 [在可执行jar 包中动态载入第三方jar class的有关问题] http://www.ccw.com.cn/cio/research/program/htm2003/20030703_142UT.asp