File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes dll in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "dll in java" Watch "dll in java" New topic

dll in java

suprita xyz

Joined: Oct 24, 2013
Posts: 4
Please anyone help to use dll in java and how to call .net dll in java
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10255

Did you try java .net dll? I did and got quite a few interesting results

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41525
See for some options. If things haven't changed since that was written, then .Net DLLs still need a COM wrapper.

Ping & DNS - my free Android networking tools app
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

you can also check out JNA.
J. Aaron Gonzalez V.

Joined: Oct 25, 2013
Posts: 1


Well, there are a few ways to load a dll into your Java programs. One of them is by using the Class.forName method, something like loading a .jar driver when connecting to RDBMS from Java.

Hope this helps!
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38363
Welcome to the Ranch

Are you sure that Class.forName will load a dll? Surely that only loads a class.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19670

Which in turn will load the library if the class has a static initializer block that calls System.load or System.loadLibrary. Without such a block nothing will be loaded.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: dll in java