c3 = Class.forName("com.imooc.reflet.Foo");这个我运行之后为什么老是有错啊?
错误是这样的,求赐教:
true
java.lang.ClassNotFoundException: com.ioomc.reflect.Foo
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:259)
at com.imooc.reflet.ClassDemo1.main(ClassDemo1.java:28)
false
您好,欢迎调用我!