Hi,
Selbst beim Ausführen in Eclipse bekomme ich schon den Fehler:
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at lenz.check.InternetCheck.initGUI(InternetCheck.java:65)
at lenz.check.InternetCheck.<init>(InternetCheck.java:55)
at lenz.check.InternetCheck$1.run(InternetCheck.java:46)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Und in der exportierten .jar sind auch keine Bilder eingefügt worden.
Java:
ImageIcon error = new ImageIcon (ClassLoader.getSystemResource("src/error.gif"));
jLabel2 = new JLabel(error);
getContentPane().add(jLabel2, new AnchorConstraint(44, 931,
Selbst beim Ausführen in Eclipse bekomme ich schon den Fehler:
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at lenz.check.InternetCheck.initGUI(InternetCheck.java:65)
at lenz.check.InternetCheck.<init>(InternetCheck.java:55)
at lenz.check.InternetCheck$1.run(InternetCheck.java:46)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Und in der exportierten .jar sind auch keine Bilder eingefügt worden.