The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: DLL FILES

Originally Posted by rubiya

I want to open the DLL files. i need the solution

Do you want to invoke functions in a DLL? Ok but keep in mind that JNI (Java Native Interface) is a technology to invoke functions in native shared libraries ("DLL" or whatever is in another O.S.) but these libraries must be developed expressely for JNI because they must comply with a lot of conventions of JNI. In other words, JNI is not able to access any shared library!

There is a project called JNA (https://github.com/twall/jna), I don't know if it's still alive/valid or not, I have tried it years ago. JNA can access any shared library because JNA is a "bridge" between Java and the native library, using JNI under the hood. Using JNA you don't need to know about JNI, but you still need to know which are the native functions to invoke, what they receive/return, what types, etc... because you have to "map" these things in a Java interface.

Please, clarify which shared library you want to use, which O.S. (I deduce Windows), which functions.
And also which is your knowledge about Java and native functions developed in C/C++ (use of JNI/JNA is an advanced concept, not for newbies).