Hi ,
i am new to JNI. I am trying to set the break point in JNI code using jdb...( 
REdhat Linux7.1 + blackdown jdk1.3.1)

i follwed the below proceduredures....

1.........
setting environment for
export LD_PRELOAD=libHelloWorld.so
export DEBUG_PROG=jdb

then i tryed to run my program using
        java -green HelloWorld

it did not invoke the jdb... and it's executing as if the normal program

2........
setting environment for
export LD_PRELOAD=libHelloWorld.so
export DEBUG_PROG=jdb

$ jdb
> stop in HelloWorld.main
Deferring breakpoint HelloWorld.main.
It will be set after the class is loaded.
>run HelloWorld
run  HelloWorld
 
VM Started: > Set deferred breakpoint HelloWorld.main
 
Breakpoint hit: thread="main", HelloWorld.main(), line=4, bci=0
  4         new HelloWorld().print();
>stop in HelloWorld.print  ( print implemented as JNI )
Unable to set breakpoint HelloWorld.print : Breakpoints can be located only 
in classes. HelloWorld is an interface or array

Can anybody tell me the right procedure to set break point inside JNI code.

Thanks,
srini


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to