It's not a secret anymore!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to run dll using java" Watch "how to run dll using java" New topic
Author

how to run dll using java

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

hi
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
Hi,
I think you can use something like this...


SCJP 1.4, www.gsi3d.org.uk
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 " +
getHelpDocURL());
Nicholas Cheung
Ranch Hand

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

Nick


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
Greenhorn

Joined: Feb 11, 2004
Posts: 7
Hi
Another way to call dll using java than you can also use -
System.loadLibrary("hello");
run hello.dll
bye,
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
http://java.sun.com/docs/books/tutorial/native1.1/
 
Consider Paul's rocket mass heater.
 
subject: how to run dll using java
 
Similar Threads
importing .dll in java programme
Memory Address
how to execute DLL file using Java ?
how to call .dll in java
creating a dll out of a java class