简体   繁体   English

如何从Java调用DLL?

[英]how to call DLL from java?

how to call DLL from java ? 如何从Java调用DLL? I want to integrate a java application to Windows. 我想将Java应用程序集成到Windows。 Let me take Outlook as an example, I have the Outlook dll, then how to call it ? 让我以Outlook为例,我有Outlook dll,那怎么称呼它? do we have similar tutorial ? 我们有类似的教程吗?

System.LoadLibrary can be used to load the libraries. System.LoadLibrary可用于加载库。 Check this previous thread for example usage 检查此先前的线程以获取示例用法

看到JNI,它旨在Java与其他语言进行交互...已经发布了许多链接

You need to use JNI to call native functions. 您需要使用JNI来调用本机函数。 In your case it you need to load Library first in memory using Runtime.getRuntime().loadLibrary( PATH_OF_DLL_FILE ) 在您的情况下,您需要先使用Runtime.getRuntime()。loadLibrary( PATH_OF_DLL_FILE )在内存中加载库

you can use following link too http://www.equestionanswers.com/dll/java-call-dll-functions.php 您也可以使用以下链接http://www.equestionanswers.com/dll/java-call-dll-functions.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM