C Board  

Go Back   C Board > General Programming Boards > C Programming

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-14-2007, 12:30 AM   #1
Registered User
 
Join Date: May 2006
Posts: 1,579
Visual Studio crashed with using java.exe to load DLL

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
George2 is offline  
Old 08-14-2007, 02:38 AM   #2
Deathray Engineer
 
MacGyver's Avatar
 
Join Date: Mar 2007
Posts: 3,211
Haven't heard of debugging java.exe with MSVS actually. Might want to check out some Java forums and check out how other people debug their JNI stuff.
__________________
MacGyver is offline  
Closed Thread

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another syntax error caldeira C Programming 31 09-05-2008 01:01 AM
multiple errors generated by socket headers nocturna_gr Windows Programming 5 12-16-2007 06:33 PM
Visual Studio Express for free Frobozz C# Programming 2 04-29-2006 09:59 PM
Errors with including winsock 2 lib gamingdl'er C++ Programming 3 12-05-2005 08:13 PM
Erros in Utility Header File silk.odyssey C++ Programming 4 12-22-2003 06:17 AM


All times are GMT -6. The time now is 09:41 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22