Solved

using jni and jnative to access unknow dlls.

Posted on 2008-10-20
3
978 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
  • 2
3 Comments
 
LVL 2

Accepted Solution

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

Author Comment

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

Expert Comment

by:formula1act
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now