xception in thread "main" java.lang.NoClassDefFoundError: com/imooc/proxy/$Proxy0 (wrong name: cn/proxy1/$Proxy0)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.imooc.proxy.Proxy.newProxyInstance(Proxy.java:69)
at com.imooc.proxy.Client.main(Client.java:7)
// 方式1 Person person = new Person(); Class c1 = person.getClass(); // 方式2 Class c2 = Person.class; //方式3 //Class类中的静态方法 public static Class forName(String className) 后面这个className是指全限路径 Class c3 = Class.forName("com.xxx.pojo.Person"); //错误提示:com/imooc/proxy/$Proxy0 (wrong name: cn/proxy1/$Proxy0) //这个是不是你的className没写对