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 how to run dll using 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 "how to run dll using java" Watch "how to run dll using java" New topic

how to run dll using java

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

I have a dll how can I run this dll using java

santhosh<br />SCJP,SCWCD
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342
I think you can use something like this...

SCJP 1.4,
Ulas Ergin
Ranch Hand

Joined: Oct 10, 2002
Posts: 77
I use this to open help the document in Word or Acrobat,
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("rundll32 url.dll,FileProtocolHandler " +
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
If you want to use native library, you can also use:


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Purvi Pandya

Joined: Feb 11, 2004
Posts: 7
Another way to call dll using java than you can also use -
run hello.dll
Purvi Pandya
frisode jonge
Ranch Hand

Joined: Dec 30, 2003
Posts: 34
besides the above good postings you may want to read more java background on it. Try the java tutorial on
I agree. Here's the link:
subject: how to run dll using java
It's not a secret anymore!