How do I run my java file through Visual C++ Debugger.

Davanum Srinivas

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:

  <your javahome>/bin/java.exe -Djava.library.path=<your DLL path> -classpath <your cp> <other options> <your Java class>

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

Answer by Alexander Krapf

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact