This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "dll in java" Watch "dll in java" New topic
Author

dll in java

suprita xyz
Greenhorn

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

Joined: Jul 26, 2007
Posts: 10167
    
    8

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
Marshal

Joined: Mar 22, 2005
Posts: 41065
    
  43
See http://www.coderanch.com/how-to/java/Java-FAQ#callingCom 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.


http://muhammadkhojaye.blogspot.com/
J. Aaron Gonzalez V.
Greenhorn

Joined: Oct 25, 2013
Posts: 1

Hi!

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
Sheriff

Joined: Oct 13, 2005
Posts: 37926
    
  22
Welcome to the Ranch

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

Joined: Oct 27, 2005
Posts: 19651
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dll in java
 
Similar Threads
how to execute DLL file using Java ?
how to run dll using java
DLL FIle
How to load a dll file in a webservice project.
Calling DLL function