Hey
I get the following error when trying to load an image into my program :
Exception in
thread "main" java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1298)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:41)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.Component.<clinit>(Component.java:356)
at javax.swing.ImageIcon.<clinit>(ImageIcon.java:62)
at thumbnail_app.main(thumbnail_app.java:21)
The two different ways I have tried to do this are :
Image image = Toolkit.getDefaultToolkit().getImage(args[0]);
Image image = new ImageIcon(args[0]).getImage();
Both giving the same error. Why is this occuring?
Any help is greatly appreciated
Thanks in advance,
Brendan