ImageIcon image=new ImageIcon(ClassLoader.getSystemResource("image/image/DVD.jpg")); 通过使用类加载器,完美解决该问题