How do I resolve this Log4J import error (relating to Classpath too)?
问题 When I run the following simple log4J example, i get an error: import org.apache.logging.log4j.core.*; import java.io.*; import java.sql.SQLException; import java.util.*; public class log4jExample{ /* Get actual class name to be printed on */ static Logger log = Logger.getLogger( log4jExample.class.getName()); public static void main(String[] args) throws IOException,SQLException{ log.debug("Hello this is an debug message"); log.info("Hello this is an info message"); } } and the error reads: