سؤال

I have java Swing Dj Native application and i tried to run it in ubuntu and its Running but when i tried same in windows 64 bit its giving error so what error is that can any body suggest me solution?

Error log in windows.

NativeSwing[1]: Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
NativeSwing[1]:     no swt-gtk-4332 in java.library.path
NativeSwing[1]:     no swt-gtk in java.library.path

What error is this? how to resolve it?

هل كانت مفيدة؟

المحلول

The Windows version of SWT is named swt-win32 (even on 64-bit platforms).

So, you have to change the classpath to point to the correct name for SWT on the platform you're using.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top