Ticket #57 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Refuses to start (exception related to jnidispatch.dll not being found)

Reported by: cemeth@… Owned by: maxence@…
Priority: high Milestone:
Component: Startup > General Version: 0.8.2
Severity: blocker Keywords:
Cc: Operating System: unspecified
Java version: unspecified

Description

Output when trying to run muCommander:

c:\Program Files\muCommander>java -jar mucommander.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError?: jnidispatch (/com/sun
/jna/win32-amd64/jnidispatch.dll) not found in resource path

at com.sun.jna.Native.loadNativeLibrary(Native.java:468)
at com.sun.jna.Native.<clinit>(Native.java:91)
at com.sun.jna.Pointer.<clinit>(Pointer.java:38)
at com.sun.jna.PointerType?.<init>(PointerType?.java:25)
at com.sun.jna.examples.win32.W32API$HANDLE.<init>(W32API.java:49)
at com.sun.jna.examples.win32.W32API$3.<init>(W32API.java:69)
at com.sun.jna.examples.win32.W32API.<clinit>(W32API.java:67)
at com.mucommander.file.util.Kernel32API.<clinit>(Kernel32API.java:37)
at com.mucommander.file.impl.local.LocalFile?.<clinit>(LocalFile?.java:124

)

at com.mucommander.file.FileURL.<init>(FileURL.java:88)
at com.mucommander.file.FileFactory?.getFile(FileFactory?.java:417)
at com.mucommander.file.FileFactory?.getFile(FileFactory?.java:375)
at com.mucommander.file.FileFactory?.<clinit>(FileFactory?.java:163)
at com.mucommander.PlatformManager?.getDefaultPreferencesFolder(PlatformM

anager.java:86)

at com.mucommander.PlatformManager?.getPreferencesFolder(PlatformManager?.

java:108)

at com.mucommander.conf.impl.MuConfigurationSource?.getConfigurationFile(

MuConfigurationSource?.java:66)

at com.mucommander.conf.impl.MuConfiguration?.getConfigurationFile(MuConf?

iguration.java:1055)

at com.mucommander.Launcher.main(Launcher.java:367)

Change History

Changed 2 years ago by maxence@…

  • owner changed from nicolas@… to maxence@…

Changed 2 years ago by maxence@…

  • status changed from new to closed
  • resolution set to fixed

Thanks for the report, the startup problem has been fixed, details following.

muCommander uses a library called JNA (Java Native Access) which provides access to Windows DLL and is used for certain operations like interacting with the Recycle Bin, retrieving information about volumes, etc...
This library is unfortunately not compatible yet with 64 bit versions of Windows :
https://jna.dev.java.net/issues/show_bug.cgi?id=59

I have patched muCommander to prevent the crash on startup and ensure that it falls back nicely everywhere JNA is normally used. The only inconvenience with muCommander operating sans JNA is the lack of Recycle Bin support : files can't be moved to it and you can't empty or open the Recycle Bin.

The fix is the current nightly build. Can you please download it and let me know if it starts correctly?

Thanks!

Changed 2 years ago by cemeth@…

Thanks for fixing, very fast.
It works now. :)
I don't need recycle bin support so no problem at all.

Changed 2 years ago by maxence@…

Great, I'm glad that did it. Many thanks for the fast turnaround!

Changed 2 years ago by maxence@…

The JNA library has been updated to version 3.0.6 which has support for the win32_x64 architecture.
Recycle Bin support should now be functional under 64-bit versions of Windows.

When you get a chance, could you please grab the latest nightly build and confirm?
Thanks!

Note: See TracTickets for help on using tickets.