Featured post
Java classpath, jar file with no .jar extension in Weblogic over Unix -
if place file called liba.jar in classpath folder, , rename old 1 to:
liba.jar.old
will classloader load classes?
i'm using weblogic on solaris 8.
thank you!
udo
no.
if you're using java 5 or earlier, must explicitly name classes , jar files loaded. obviously, since old one, liba.jar.old isn't named, won't loaded.
it's bit of different story if you're using java 6, since concept of wildcard matching exists there.
still, non jar files won't loaded. info taken official site. quote:
class path entries can contain basename wildcard character *, considered equivalent specifying list of files in directory extension .jar or .jar. example, class path entry foo/* specifies jar files in directory named foo.
a classpath entry consisting of * expands list of jar files in current directory. class path entry contains * not match class files. match both classes , jar files in single directory foo, use either foo;foo/* or foo/*;foo. order chosen determines whether classes , resources in foo loaded before jar files in foo, or vice versa.
- Get link
- X
- Other Apps
Comments
Post a Comment