I have a .dll file, which i have to use in java. This .dll file has a parameterised method, which should return type as string. When i am passing parameter to it, i get the mes
public native String eagleye_fmu(n);
The 'n' here is the problem as it would be a problem with any other java function declaration.
This should be something like public native String eagleye_fmu(String);
then you call the native function like any other function String result = eagleye_fmu(n);
This is all assuming you have the dll implemented properly
Simple add the reference in you project. and the namespace at the top.. then you can access the all dll methods. If your are using Eclispe then right click on your project->Then click on Build path-> then click on Add libraries after that click on user library
Here you can import the dll
Try having a look at JNA, it provides a nice wrapper layer around native code.
https://github.com/twall/jna