Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using dll

 
Ariffin Ahmad
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ariffin Ahmad
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, dll's is native code for a Windows environment. It's C/C++ code.
Hope that clears it up.
Yoo-Jin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic