I made a runnable jar with external libraries. Under Windows I use a bat file to run the application (java -Djava.library.path=./dist/lib -cp ./dist/Navegador.jar; navegador.Main) and it works properly.
I created a sh file to run the application under Linux, but Im getting the following error while trying to execute it in terminal:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
chrriis/dj/nativeswing/NativeSwing
My Manifest.mf is like this:
Class-Path: lib/DJNativeSwing-SWT.jar lib/DJNativeSwing-SWTAPI.jar lib
/DJNativeSwing-SWTCore.jar lib/MozillaInterfaces-1.8.1.3.jar lib/DJNa
tiveSwing.jar lib/swt.jar
Why this jar doesn’t work under Linux?
Do you one or two
libdirectories? You havebut you also have
Does this mean you have a
dist/libandlibdirectory or should they be the same?