Solved

using jni and jnative to access unknow dlls.

Posted on 2008-10-20
3
994 Views
Last Modified: 2013-11-23
I am having some dlls to be accessed from java.I have the code for it but i do not know what code structure jnative or jni responds to.To be more precise - i know that jnative's constructor accespts dll name and function name as parameters - i do not know where the function name should be put in -what class it should be put in.if i blindly create a new project with a projectname/dllname and any class with a function.....the dll is loaded but the function name is not found - which is a bit obvious since there is no way to know where the function comes from.I tried more variations like Classname.functionname....but still the function is not found.Can some one tell me what the structure of the dll should be and how it should be called from jnative.
The jnative gives example use of user32.dll but i do not have the decompiled code of user32.dll.
Can anyone tell me how i can decompile user32.dll
0
Comment
Question by:anna_mika
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
formula1act earned 500 total points
ID: 22767114
this is a good quick step guide to jni
http://patriot.net/~tvalesky//jninative.html
0
 

Author Comment

by:anna_mika
ID: 22773484
I am looking for an example accessing .net dll
0
 
LVL 2

Expert Comment

by:formula1act
ID: 22776151
Irrespective of the type, loadLibrary  function is used to load the dll.
So mention the .net dll
or you can refer the below url

http://www.experts-exchange.com/Programming/Languages/Java/J2SE/JNI/Q_23534869.html


0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question