I have a library which is written in C++ (actually a Firefox plugin, xyz.dll) and I need to access its methods from Java.
public class AccessLibrary { p
I think your native library needs to provide a C-style interface, for example
__declspec( dllexport ) void showVersion() { /* ... */ }
Ideally, take a look at your DLL with depends.exe (which is available through the Windows SDK), there you'll see if your DLL provides the correct function exports.
depends.exe