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

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Java in General
Bookmark "dll in java" Watch "dll in java" New topic

dll in java


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: 10642

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: 42954
See for some options. If things haven't changed since that was written, then .Net DLLs still need a COM wrapper.
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: 40952
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: 19896

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
pavan aryan

Joined: Feb 28, 2010
Posts: 16
suprita xyz wrote:Please anyone help to use dll in java and how to call .net dll in java

I also got a similar requirement.. kindly let me know if you have figured it out..
I agree. Here's the link:
subject: dll in java