Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

External dll

  Asked By: Don    Date: Nov 30    Category: Java    Views: 1816

This might be a newbie question. I have an external dll that I want
to use. But I dont know how to do that from a java class.

I have done it in visual basic by adding the dll in project reference
and then I can use the sample code below. But how do I do the same in

Dim oCustProp As DSOleFile.CustomProperty
oCustProp.Value = "the value"



2 Answers Found

Answer #1    Answered By: Phoebe Brown     Answered On: Nov 30

you cant load a dll  in [standered] java  although MS J++ may
allow it.

Answer #2    Answered By: Latoya Murray     Answered On: Nov 30

Use JNI. This is the way in Java to communicate to native code  and
since an external  dll is native code you have to go this way.
But since Java application should be portable you should forget
about such kind of crap.

Didn't find what you were looking for? Find more on External dll Or get search suggestion and latest updates.