0

how to call DLL from java ? I want to integrate a java application to Windows. Let me take Outlook as an example, I have the Outlook dll, then how to call it ? do we have similar tutorial ?

1

5 Answers 5

1

Use Java Native Access (JNA) : http://jna.java.net/

http://twall.github.com/jna/3.4.0/javadoc/overview-summary.html#overview_description

Sign up to request clarification or add additional context in comments.

1 Comment

with jna you dont neeed to write c/c++ code, works only with java! much more easy then jni!
0

System.LoadLibrary can be used to load the libraries. Check this previous thread for example usage

1 Comment

This is a comment, not an answer.
0

all you need is Java Native Interface http://docs.oracle.com/javase/1.5.0/docs/guide/jni/index.html

Comments

0

See JNI it aims java to interact with other langages... many links have been posted

Comments

0

You need to use JNI to call native functions. In your case it you need to load Library first in memory using Runtime.getRuntime().loadLibrary(PATH_OF_DLL_FILE)

you can use following link too http://www.equestionanswers.com/dll/java-call-dll-functions.php

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.