Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2007, 10:07 PM
Member
 
Join Date: Jul 2007
Posts: 41
katie is on a distinguished road
how to call a dll from java
I want to call a generic dll from JAVA. The dll is provided by thirdparty. I can load it using "System.load("nameofthedll.dll");"
but I'm now confused how can I call the methods??. Since it is not made by me using JNI so there is not method with "native" keyword.


thanks

Last edited by katie : 08-07-2007 at 05:11 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 05:10 PM
Member
 
Join Date: Jul 2007
Posts: 39
christina is on a distinguished road
You should still use JNI to call the third party DLL through a
DLL made by you.
Java call the DLL made by you, then this DLL call the third party DLL, as a bridge.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-10-2007, 11:18 AM
Member
 
Join Date: Dec 2007
Posts: 5
Zahari is on a distinguished road
(2)******JAVA CALL DLL******

System.load("C:\\Windows\\System32\\yourdllname.dl l");
System.out.println("CLIENT_ENCRYPT LOADED");
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-10-2007, 12:34 PM
Member
 
Join Date: Dec 2007
Posts: 12
Abdul Ajis is on a distinguished road
CodeProject: JNI Basics - 1. Free source code and programming articles
calling from a .dll using Java and JNI

Check this links
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call C/C++ Program from Java sanjeevtarar Advanced Java 1 04-17-2008 10:55 AM
Create, compile and call a Java source dynamically Java Tip Java Tips 0 02-17-2008 10:57 AM
If JNI thread call the java object in another thread, it will crash. skaterxu Advanced Java 0 01-28-2008 09:02 AM
How can I call java class methods in Oracle 10g PL/SQL searcher34 Database 0 01-02-2008 03:52 PM
I need to call and run another program coco Advanced Java 1 07-31-2007 07:47 AM


All times are GMT +3. The time now is 04:24 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org