how to use dll (written in C) in Java application?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to use dll (written in C) in Java application?

  1. #1
    Join Date
    Apr 2003
    Posts
    1

    how to use dll (written in C) in Java application?

    Hi, I have a Frame_Grabber.dll written in C.
    How can I use this DLL in my java application?

    I know how to use java native interface, and to create my own dll, but what if the dll already exists?

    Does someone know it?

  2. #2
    Join Date
    Mar 2003
    Posts
    86

    JNI

    What you would have to do is write a wrapper JNI DLL that will forward your java calls to the legacy DLL.
    Look into JNI.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center