Results 1 to 2 of 2
Thread: Use .dll files in Java
- 04-17-2012, 09:03 AM #1
Member
- Join Date
- Jun 2011
- Posts
- 3
- Rep Power
- 0
Use .dll files in Java
hi,
i have a dll file thats present some function. i called DLL file from java . i got the some errors such as
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'USBIsConnected': The specified procedure could not be found.
but I hope with in that DLL the function present. here i have used java 1.6 version . kindly give the ideas
- 04-17-2012, 09:47 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,383
- Blog Entries
- 7
- Rep Power
- 17
Re: Use .dll files in Java
You can't directly call an arbitrary C/C++ function from Java; you have to use either JNA or JNI; JNI is the older technology and it requires you to write a little wrapper function for every function you want to call from Java; JNA doesn't need those wrappers but I have no experience with it (I don't even know if it runs on anything not-MS Windows).
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Writing zip files results in a zip file with a size, but no files when i open it
By Jaeela in forum New To JavaReplies: 11Last Post: 12-04-2011, 10:10 PM -
Java webstart having problem with multiple jar files and resource files
By rjalori in forum AWT / SwingReplies: 2Last Post: 06-11-2011, 01:54 PM -
Converting installed java files (.jar.#/.jar.$) back to executable java
By merridge642 in forum Java GamingReplies: 1Last Post: 10-03-2010, 06:29 AM -
Convert avi, mpeg, wmv media files to .flv files in java code
By vinay1497 in forum New To JavaReplies: 8Last Post: 07-30-2010, 05:47 PM -
conversion of java .class files to .java files
By kotturupraveen in forum New To JavaReplies: 2Last Post: 06-09-2008, 12:58 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks