日期:2014-05-20 浏览次数:20825 次
package cn.com.starit.io; import java.io.IOException; import java.io.OutputStream; public class SystemDemo02 { public static void main(String[] args) { OutputStream out = System.out; try{ out.write("hello".getBytes()); }catch(IOException e){ e.printStackTrace(); } try{ out.close(); }catch(IOException e){ e.printStackTrace(); } } }
java.lang.NoClassDefFoundError: cn/com/starit/io/SystemDemo02 Caused by: java.lang.ClassNotFoundException: cn.com.starit.io.SystemDemo02 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Exception in thread "main"