2011-04-28 158 views
0

我想在Websphere Application Server中创建共享库。我在abc文件夹中有abc.jar。我想知道在类路径中指定c:\ abc Vs c:\ abc \ abc.jar之间的区别共享库websphere

回答

1

如果c:\ abc包含其他jar,它们也会被添加到类路径中。如果c:\ abc包含非jar文件(例如,c:\ abc \ test.properties),则c:\ abc将被添加到类路径本身,从而允许目录的getResource调用工作(例如ClassLoader。 getResource(“test.properties”)将找到该文件)。