Results 1 to 4 of 4
Thread: how to call a dll from java
- 07-23-2007, 08:07 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 41
- Rep Power
- 0
how to call a dll from java
I want to call a generic dll from JAVA. The dll is provided by thirdparty. I can load it using "System.load("nameofthedll.dll");"
but I'm now confused how can I call the methods??. Since it is not made by me using JNI so there is not method with "native" keyword.
thanksLast edited by katie; 08-07-2007 at 03:11 PM.
- 08-07-2007, 03:10 PM #2
Member
- Join Date
- Jul 2007
- Posts
- 39
- Rep Power
- 0
You should still use JNI to call the third party DLL through a
DLL made by you.
Java call the DLL made by you, then this DLL call the third party DLL, as a bridge.
- 12-10-2007, 09:18 AM #3
Member
- Join Date
- Dec 2007
- Posts
- 5
- Rep Power
- 0
(2)******JAVA CALL DLL******
System.load("C:\\Windows\\System32\\yourdllname.dl l");
System.out.println("CLIENT_ENCRYPT LOADED");
- 12-10-2007, 10:34 AM #4
Member
- Join Date
- Dec 2007
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
How to call C/C++ Program from Java
By sanjeevtarar in forum Advanced JavaReplies: 1Last Post: 04-17-2008, 08:55 AM -
Create, compile and call a Java source dynamically
By Java Tip in forum Java TipReplies: 0Last Post: 02-17-2008, 08:57 AM -
If JNI thread call the java object in another thread, it will crash.
By skaterxu in forum Advanced JavaReplies: 0Last Post: 01-28-2008, 07:02 AM -
How can I call java class methods in Oracle 10g PL/SQL
By searcher34 in forum JDBCReplies: 0Last Post: 01-02-2008, 01:52 PM -
I need to call and run another program
By coco in forum Advanced JavaReplies: 1Last Post: 07-31-2007, 05:47 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks