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.
nilu011700Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vivexpCommented:

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

best of luck!!!
0
nilu011700Author Commented:
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.
0
nilu011700Author Commented:
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.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

jini36Commented:
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!!
0
jini36Commented:
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!!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.