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
Solved

using jni and jnative to access unknow dlls.

Posted on 2008-10-20
3
987 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

856 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