See this class:
import org.apache.log4j.Logger;
public class A {
}
what will happen if we do not set the log4j.jar into classpath at compile-time and build-time respectively?
Answer:
Compile-time: FAIL
Run-time: SUCCEED! (dynamically classloading)
import org.apache.log4j.Logger;
public class A {
}
what will happen if we do not set the log4j.jar into classpath at compile-time and build-time respectively?
Answer:
Compile-time: FAIL
Run-time: SUCCEED! (dynamically classloading)