This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Java in General and the fly likes about use of dll files in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "about use of dll files in java" Watch "about use of dll files in java" New topic

about use of dll files in java

padmaratna kamble

Joined: Apr 26, 2006
Posts: 26
Dear Friends.

I have a dll which was developed in Visual Basic. If we use that in the VB code we can carry out certain methods.

My concern is: I want to use this dll in my java method. what all the methods that can be used in the VB should also be used in java method.

I know that this can be done using JNI, but please help me for getting starting, I am a bit new to this technology.

thanks so much.
Jason Moors
Ranch Hand

Joined: Dec 04, 2001
Posts: 188
The following tutorial should help, you will need to write a c++ class to wrap the dll.

JNI Tutorial

It is sorta covered in the JavaRanch Style Guide.
subject: about use of dll files in java
It's not a secret anymore!