How do I run my java file through Visual C++ Debugger....
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jiten_Chauhan
Posted On:   Thursday, March 15, 2001 02:27 PM

How do I run my java file through Visual C++ Debugger. I have built a java file that uses JNI to call function from a dll written in C++. The DLL is written in Visual C++ Studio using a MFC APP Wizard DLL Project. The application works from the Command Line (DOS), but I want to put it through the debugger in Visual Studio b/c i think I am losing resources as the application runs. thx.

Re: How do I run my java file through Visual C++ D...

Posted By:   Alexander_Krapf  
Posted On:   Friday, March 16, 2001 02:54 PM

Hi Jiten,


you have to use java.exe as the debugging application for your DLL. You open your native DLL project and enter the following in the Debug tab of the project:



/bin/java.exe -Djava.library.path= -classpath


This has worked reliably for us here at Codemesh when we debugged our JNI tool.


Good luck,


Alex

About | Sitemap | Contact