George
2007-08-14 06:40:02 UTC
Hello everyone,
I am using Visual Studio 2003. I am writing a JNI program, and upper layer
is Java code and lower layer is C code (DLL). The Java code is utilizing C
code by JNI.
To debug the C code, in the C DLL Project Properties dialog, I assign
Debugging Command to java, then set Command argument to,
-classpath "C:\Program Files\Java\jdk1.5.0_06" HelloWorld,
when when debugging from Visual Studio, Visual Studio will crash. Do you
know anything wrong with the settings?
I have also tried to run manually from command line,
java -classpath "C:\Program Files\Java\jdk1.5.0_06" HelloWorld
and the result is correct.
regards,
George
I am using Visual Studio 2003. I am writing a JNI program, and upper layer
is Java code and lower layer is C code (DLL). The Java code is utilizing C
code by JNI.
To debug the C code, in the C DLL Project Properties dialog, I assign
Debugging Command to java, then set Command argument to,
-classpath "C:\Program Files\Java\jdk1.5.0_06" HelloWorld,
when when debugging from Visual Studio, Visual Studio will crash. Do you
know anything wrong with the settings?
I have also tried to run manually from command line,
java -classpath "C:\Program Files\Java\jdk1.5.0_06" HelloWorld
and the result is correct.
regards,
George