怎么说都是要放classpath里。用tomcat,可以copy驱动到已设置好的classpath里去,就不用改设置了。用weblogic……不熟悉,好像在那里面可以设的。