Help me!! i don't know how to debug jni program!!

i have finished a jni program. but when i run the java project, some errors appeared.
for i am sure the errors come from the native method ,i set a breakpoint on the native call and debug the project. for the jni program were written with c++, so when i choose "step into" , it dosen't step into and just report some kinds of error.
i use jbuilder4.0 for java program and vc++6.0 for the native method.
i had try two ways. i try to invoke the JVM in native method but i failed to set the classpath. and i debug the native method , the dll, and link to the java.exe. but there is no place to input my classname when load the java.exe. what the result is some information of java.exe.
can anybody help me??!!!!

Make sure your Active Configuration is set to Debug.
Then make sure you are loading the dll from the Debug directory in your Java application. Set all the Breakpoints etc you want in your DLL, build it.
Start your java application from the command line (you do not need it in debug mode at all if you only want to debug the DLL. Make sure you have some way of causing the App to wait for some interaction so you can do the following.
In your open CV++ project select Build->Start Debugging->Attach to Process. Attach to the process that is the java VM running your App.
The cause your Java app to run normally.
Breakpoints etc will cause the VC++ debugger to be invoked and you can merrily debug to your hearts content.

Similar Messages

  • Nokia Lumia 928 apparently died after an attempted Windows 8.1 update.  Replacement phone arrived the next day.  How can I restore my contacts, photos, etc.?  Backup assistant is no help and I don't know how to access the Cloud.

    Nokia Lumia 928 apparently died after an attempted Windows 8.1 update.  Replacement phone arrived the next day.  How can I restore my contacts, photos, etc.?  Backup assistant is no help and I don't know how to access the Cloud.

    Did you have the phone set to backup things to the One Drive on Microsoft servers?

  • Fife days App Store not give it to me the verify code, I made I lot email adress, changed and create the new, still the same problem, and this is second one iPad that I bought this month, if not help me I don't know how to deal, thank you in advance

    Fife days App Store not give it to me the verify code, I made I lot email adress, changed and created the new, still the same problem, and this is second  iPad that I bought this month, if not help me I don't know how to deal, thank you in advance, maybe I will go to shop and want my money back

    Do you have a technical question for us volunteer users?

  • Don't know the name of it but a toolbar at the top of the window has disappeared after I restarted Firefox. It contained add-ons such as Download Helper and I don't know how to get it back. Please help. Thanks!

    I don't know the name of it but a toolbar at the top of the window has disappeared after I restarted Firefox. It contained add-ons such as Download Helper and I don't know how to get it back. Please help. Thanks!
    EDIT: Sorry I meant the "Save Complete" add-on, not Download Helper.

    Be sure "Add-on Bar" is checked (click on "Add-on Bar" to check or un-check)
    *See --> https://support.mozilla.org/en-US/kb/Back%20and%20forward%20or%20other%20toolbar%20items%20are%20missing
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • IWebsites. Can anybody help me? Don't know how to publish two dif. sites

    Hi,
    Can anybody help me? I don't know how to publish two different websites to two different domains.
    I have www.windypoint.ca (website is up and running)
    and I have www.oldfriend.ca (website is ready in iWeb, but can't publish to www.oldfriend.ca
    How do I do that?
    Any/Every tip will be appreciated!!!
    Thanks, Marc

    Are you publishing to .Mac or or straight to your domain name via ftp?
    It is just that the process is different for the two.
    If you are using .Mac, then you are publishing using this and re-direct to your domain name at your host. If you are publishing directly, then you publish to a folder and use ftp.
    You need to separate your sites out first, by copying the domain.sites file and then publishing to a folder and then uploading via ftp in the normal way.

  • Please Help! I don't know how to get rid of this extension!!

    I purchased this mac book pro in the middle of 2014. So it's not even a year old. About 4 months after purchasing I noticed that I started to get pop ups that were opening new tabs. Particularly 'Mackeeper'. I don't know if this is an extension or what, but I have been looking for an answer but can't seem to find one. Every 3rd or 4th click and BOOM another pop-up of either an 'airpurifyer' add or a video game add. It is driving me round the bend! I've now noticed that on webpages, words have started to be hyperlinked. Please help before whatever this is destroys my macbook. 

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

  • My lifetime calls is glitched at 4,924,000,000 and I can not figure out how to reset this PLEASE HELP URGENTLY I don't know how to resolve this

    My IPhones total life time calls is at 4,924,000,00 and I can't figure out if this is a glitch because I know that I have DEFIANTLY not called for that long I don't know if this will be resolved but someone PLEASE HELP

    Glad it helped!
    For what it's worth, I suspect you'd have to restore the phone as new to resolve the issue. If it were mine, I'd probably elect to live with the weirdness rather than go through the fuss of a restore.
    Best of luck.

  • My Safari is suddenly opening strange tabs when I am trying to open something else.  I have never had this problem before and I need help please, I don't know how to stop this happening

    Hi there,
    I have had my Macbook for 18 months and have never experienced this problem with strange windows suddenly opening in Safari.  I know this happens on windows 8 computers a lot, and it has never happened on my Macbook before.
    Please can someone tell me how to get rid of these.  I have reset my Safari and rebooted my computer, and don't know what else to do.  This is very frustrating, as I cannot just do what I need to do.
    Thank you
    Cheryl

    I'm pretty sure you've got adware installed on your Mac. Please download and install adwaremedic: www.adwaremedic.com
    This will remove most know adware plugins for you.

  • HELP!  I DON'T KNOW HOW TO UNINSTALL LIMEWIRE OR SIGN ON TO AOL!!!

    Hello all! I need serious help. I've installed Limewire, but I have no idea how to uninstall it. I don't want it anymore. I'm afraid it has given me a virus or something terrible that I won't be able to get rid of. And another thing, my AOL won't open anymore. I've restarted my iBook many times, but after the blue screen for AOL comes up and the percentage goes up to 100%, the entire box just disappears and I'm left looking at my background. Please help, anyone! Thank you.

    Hey Alli
    Try restarting your computer, then dragging Limewire to the trash.
    If that doesn't work, you can also check Activity Monitor to see if Limewire is running.
    Activity Monitor is in the "Applications" folder under "Utilities" Use Activity Monitor to Stop Limewire if it is running.
    Hope I've helped!

  • I need help! I don't know how to put songs from my library to my library.

    It says songs on the ipod cannot be updated because all because all of the playlists selected for updating no longer exist. I have lots of music in my library but i dont no how to put it into my ipod. If helped ill be sure to comment back. thanks again.

    Connect the iPod and open iTUnes.
    Select iTunes prefs -> iPod.
    Select Automatically update all songs and playlists.

  • Help!  I don't know how to move my music!!

    I have all my downloaded music in Windows Media Player. I just bought a nano and can't figure out how to get my music from WMP to Itunes so that I can download it onto the ipod. Help! I'm extremely computer illiterate!!

    Welcome to Apple Discussions!
    The music should be in My Documents-->My Music.
    In iTunes go to file-->add folder to library. Find the folder where all the music is, select it, and hit ok.
    The music should import and convert.
    Any protected files will not import.
    btabz

  • Help! I don't know how to fix my laptop and I need to use it!

    Alright, if this has been asked before and answered, I apologize. I looked in millions of forums and can't figure this out. Here's my problem: I turn my Macbook on, I see the apple, and then I see a picture of the power button telling me to restart my computer, and this above it to the left,
    panic(cpu 0 caller 0x0039BDDF): Unable to find driver for this platform: "ACPI"
    Debugger called: <panic>
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0xb253e04 : 0x128b5e (0x3bbf84 0xb253e28 0x131bbc 0x0)
    0xb253e44 : 0x39bddf (0x3df734 0x1e50780 0x1edc404 0x1f315c0)
    0xb253e64 : 0x37fba6 (0x1f27300 0x1e40c80 0x1 0x1f315c0)
    0xb253ec4 : 0x38142b (0x1e40c80 0x1f27300 0x1f2e200 0x1e578a0)
    0xb253f44 : 0x380c95 (0x1e40c80 0x1e565c0 0x8 0xffffffff)
    0xb253f94 : 0x3823de (0x1e40c80 0x0 0x1e50510 0x0)
    0xb253fd4 : 0x197a29 (0x1e50510 0x0 0x1e4e458 0x134aec) Backtrace terminated-invalid frame pointer 0x0
    Kernel version:
    Darwin Kernel Version 8.6.2: Thu Apr 13 18:48:29 PDT 2006; root:xnu-792.9.59.obj~1/RELEASE_I386
    I tried starting up on the cd by holding C while it starts up, but it still gives me this page. If you can help me, I would love you forever and would have died and gone to Heaven. Please send me a copy of your response to [email protected] as well as your post. May God bless you.
    -Brian

    If you're getting panics trying to boot from your install DVD, you have a hardware issue. Did you install any third-party RAM? You might try reseating the RAM modules. If that doesn't help, have it looked at by Apple.
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    YouTube.MacOSG.com
    iTunes: MacOSG Podcast
     An Apple User Group 

  • I just updated my iPad and don't know how to clear running programs now

    I have just updated my iPad. When I try to delete or stop the programs running I am doing it the way I used to do it before it was updated by double tapping the on/off button. When I do this, it shows the programs I was using on the bottom of the screen. But when I press the icon to look for the minus sign to remove it, it doesn't happen.  iIt just makes that website come up. So, something has changed with the new update but I can't figure it out. Can someone tell me what to do? Thank you.

    Sigh......does no one search to see if anyone else has asked the same question?
    As before, double tap your home button.  You'll see the apps in use on the bottom and a page view of the open version above the app on the bottom.  With your finger, slide the open version of the app upwards towards the top of the iPad and the app will close........

  • When I opened the new iMovie (10.0.3) it asked if i wanted to update the old library or wait till later  I opted to wait and now it doesn't ask and I don't know how to get the movies I had in iMovie 11 into the new iMovie. Any ideas

    How to move imovie11 files to new imovie 10.0.3.  I did not opt to answer the original question instead selected update later, but I don't know how as the new program never poses that question again any ideas?

    Choose File - Update projects and events.  See:
    http://help.apple.com/imovie/mac/10.0/#mov902ad0c31
    Geoff.

  • Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how

    Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how to resolve it. This is my problem: 
    Have downloaded for example: Queen – Bohemium Rhapsody from a compilation album as well as a few complete Queen Album CDs into the iTunes library and then put them into playlists,
    When I go onto my phone and select Queen on the MUSIC app using Songs tab at the bottom of the screen it will display all Queen songs and their resective Alum pics, that is all those not in a complilation album, .
    If I know the song title I can select the songs tab and find the song that way,
    I’ve tried fiddling with the settings in the iTunes app by going to ‘get info’ tab and trying to sort the problem out that way but am not having much luck.What I want the phone to do is show, for example all Queens songs including those in compilation albums. Can this be done, would be grateful for any ideas on how it can be done, that is if ic can be done, any ideas
    Thanks for your help

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

Maybe you are looking for