Hi Arto, If you do not succeed you could have a look at the javaapp plugin at http://maven-plugins.sourceforge.net
Cheers, Siegfried Goeschl -----Original Message----- From: Arto Pastinen [mailto:[EMAIL PROTECTED] Sent: Freitag, 16. Juli 2004 12:04 To: [EMAIL PROTECTED] Subject: uberjar problem. Hi! I have defined some images in project.xml <resources> <resource> <directory>src/resources</directory> </resource> </resources> And i try to get them in code by following way: new ImageIcon(ClassLoader.getSystemResource("icon.png")) If i run "real" jar, then everything works fine, but if i run uberjar, i get following stack: Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.boot.Bootstrapper.bootstrap(Bootstrapper.java:209) at org.codehaus.classworlds.boot.Bootstrapper.main(Bootstrapper.java:116) Caused by: java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:138) Ant hints?? Artsi --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
