wood burning stoves 2.0*
The moose likes Java in General and the fly likes using dll Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "using dll " Watch "using dll " New topic
Author

using dll

Ariffin Ahmad
Ranch Hand

Joined: Aug 16, 2001
Posts: 84
do anybody know how can i use already build dll in my java code?....
do i have to use CORBA / JNI, and what is the different between both of them?....
is there any online tutorial that i can refer to?.....
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If you just want to integrate an existing .dll into your java app you just need JNI.
You can read up on JNI at Sun's JNI Tutorial.
Corba is a standard for defining "Object Brokers". You would use a Corba implementation (probably using a Corba based tool)instead of perhaps an RMI solution for creating Client/Server relationship.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ariffin Ahmad
Ranch Hand

Joined: Aug 16, 2001
Posts: 84
Originally posted by Cindy Glass:
If you just want to integrate an existing .dll into your java app you just need JNI.
You can read up on JNI at Sun's JNI Tutorial.
Corba is a standard for defining "Object Brokers". You would use a Corba implementation (probably using a Corba based tool)instead of perhaps an RMI solution for creating Client/Server relationship.

from what i can see, it seem like JNI is more suitable for using native code, not dll. am i right?....
Yoo-Jin Lee
Ranch Hand

Joined: Nov 01, 2000
Posts: 119
Actually, dll's is native code for a Windows environment. It's C/C++ code.
Hope that clears it up.
Yoo-Jin.
 
Consider Paul's rocket mass heater.
 
subject: using dll
 
Similar Threads
Calling a DLL file from a JSP page??
how to invoke a dll
ActiveX to Java
jar to native dll
CPU usage