aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 9990
    
    7

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: 39529
    
  27
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 - updated with new look and Ping home screen widget
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: 36452
    
  15
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: 19538
    
  16

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 run dll using java
how to execute DLL file using Java ?
DLL FIle
Calling DLL function
How to load a dll file in a webservice project.