Link to home
Start Free TrialLog in
Avatar of nilu011700
nilu011700

asked on

Calling C/C++ DLL from java using JNI

I have Java win32-Application/exe, which calls C++ dll. There is one method implemented in C++ DLL. Visual Cafe is development environment for Java application and VC++6.0 for C++ dll. My Java application hangs when native method is called. Native Java Exception Error!!
I am using implib to convert the C++ .dll into an OMF .lib file.

Would appreciate quick response.
Avatar of vivexp
vivexp


Hi,
Visit http://www.javaworld.com/javaworld/javatips/jw-javatip86.html
for an example for on win32 platform

best of luck!!!
Avatar of nilu011700

ASKER

I'm affraid to say this , but this is not what I need. I do not need AWT native interface.
My Java application which runs as Win32 executable is not calling DLL. I have done all what I need to do and what I know to call native DLL.
If you still think the URL would help please let me know in bit of a detail.
Thanx for your time.
I'm affraid to say this , but this is not what I need. I do not need AWT native interface.
My Java application which runs as Win32 executable is not calling DLL. I have done all what I need to do and what I know to call native DLL.
If you still think the URL would help please let me know in bit of a detail.
Thanx for your time.
Just a thought !! Did u check out all the services are running ?? If you have done everything correct than check out if DLL having some problem running!!

I have a question which relats to this one.. I am not able to use DebugBreak() in my native DLL accessing from Java application !! Do anyone know about this ??

Enjoy!!
Just a thought !! Did u check out all the services are running ?? If you have done everything correct than check out if DLL having some problem running!!

I have a question which relats to this one.. I am not able to use DebugBreak() in my native DLL accessing from Java application !! Do anyone know about this ??

Enjoy!!
ASKER CERTIFIED SOLUTION
Avatar of shaveri
shaveri

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial