Can some one provide me an example to call dll from java? I learning some thing about JNI , also linkage with c++ but doesnt found any cool stuff on c# and java... I want a free solution. Thanx in advance.

try these links im sure this will do: http://support.microsoft.com/kb/222092 , http://blog.mwrobel.eu/how-to-call-dll-methods-from-java/ , http://stackoverflow.com/questions/771145/how-do-i-call-dll-inside-java and http://www.java-forums.org/advanced-java/2064-how-call-dll-java.html and it seems you can use this really quick technique to load your dll use:

System.load("C:/Windows/System32/yourdllname.dll");

or

    System.loadLibrary("C:/Windows/System32/yourdllname.dll");

Does this mean we can access the user32.dll file?

Thank you ... Java is a langauge i like the most but this time i think i dont have any choice i have to use .net framework ..................