Integrated Debugger for Java*/JNI Environments

Integrated Debugger for Java*/JNI Environments

Here is a debugger for cases where Java applications can not be written entirely in the Java language and use the Java Native Interface (JNI) to access native code. This tools fills a gap left by traditional Java debuggers, such as the Eclipse JDT debugger, which can not satisfy all developer needs because they do not effectively support debugging native code written in languages such C/C++.

This tool will get you familiar with debugging JNI code based on a new debug interface implemented on top of the Apache Harmony JVM. This approach provides support for the seamless debugging of native methods in Java applications and access to native data. The target audience is tools developers and Java developers.

Your comments and feedback are welcomed in this thread.

Product Overview | Download

Steve
16 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

Hi,
I'm having an issue getting the integrated debug environment working on windows xp. does it matter what version of harmony JVM is used? And how do we install the NCAI patch over the top?
Cheers,
alphafoobar

Hello Alphafoobar,
Thank you for reporting.
Yes, it matters version of Harmony* JVM to apply patch, as usual for big patches ;). we used r567700 revision of Harmony* JVM. You can try to use prebuilt binaries, before playing with Harmony sources for Windows* and Linux*. And don't forget to copy NCAI agent to JRE/bin folder (see README.txt in the package).
Let me know if it helps you.
--vvl

Hi Team,
I used the stable build M2-r551077, the r567700 doesn't appear to be available from the apache harmony snapshot build folder

Will the integrated environment work with any of these?
Cheers,
Alpha

Hi Alpha,
Integrated Debugger for Java*/JNI Environments uses NCAI extension of JVMTI which is not in the mainstream of Harmony* JVM development. We've selected r567700 as the latest available revision while debugger releasing. NCAI patch is quite huge and influence on different part of VM so it's take a time to migrate from one revision to another.
Have you tried binaries of the Harmony JVM with NCAI from :
http://people.apache.org/~gshimansky/NCAI/win_ia32_msvc_debug_nodebug.zip http://people.apache.org/~gshimansky/NCAI/lnx_ia32_gcc_debug_nodebug.tar.gz
?
Also you can check out the r567700 revision from Harmony svn repository

Hi guys,
I had a few issues getting the complete source for this version - so I tried just downloading the source from this folder: https://svn.apache.org/repos/asf/harmony/enhanced/drlvm as it appeared to be r567700.

I don't suppose you guys have a windows build or a more specific svn target to download?
Cheers,
Alpha

Hello Alpha,
You could find more detailed information about accessing and building Harmony* VM at
http://harmony.apache.org/quickhelp_contributors.html. Possible it's better to share your issue with Harmony* development community and get some advices how to solve the issues.

Have you got any issues with windows build shared at http://people.apache.org/%7Egshimansky/NCAI/win_ia32_msvc_debug_nodebug.zip ?
--vvl

Sorry,
Perhaps I don't understand but I thought that it was intended to deploy the patch build over the top of harmony?
Cheers.

I tried running with patched non-r567700 build of harmony. And I got the error: MSVCR71.dll was not found. I tried running with the NCAI patch build (without harmony installed under it) and got the same error. I presume this is just a .NET dll or a Visual Studio dll?

So it would probably work in Linux? But When I load the Harmony JVM I get a lot of compile errors in Eclipse. It would be better if these didn't occur when I switched JVM.

It isn't necessary to apply the patch, instead you should try prepared builds for Windows* (http://people.apache.org/~gshimansky/NCAI/win_ia32_msvc_debug_nodebug.zip) or Linux* operating systems (http://people.apache.org/~gshimansky/NCAI/lnx_ia32_gcc_debug_nodebug.tar.gz). Those two builds are ready for use (that mean that NCAI patch's already applied). If you interests in details or want to add some improvements you could use Apache Harmony* svn repository and the patch introducing NCAI.
--vvl

Hello,

My name is Raghu, i am interested to try out this plug-in. I realized Apache Harmony plug-in for eclipse supports only Eclipse 3.3 from its update site.

Either can u post link to older version of this plug-in somewhere? or
Do you know when your app will be ready for Eclipse 3..3?

Raghu

Hello Raghu,
Have you tryed to talk with Harmony guys (dev@harmony.apache.org) about this plugin? I'm afraid I couldn't provide full information about this plugin.

We haven't plan particular plan when the particular day begin and will migrates IDebug to Eclipse 3.3. Especially that we mostly interested in some recommendation and evaluation from community about rather new and exciting debugging techique used in IDebug.

Do you see that lack of Eclipse 3.3 is bottleneck for you to try IDebug?

Hello,

Many thanks for this reply. The reason i ask this is in order for you to point Apache Harmony as an alternate JRE, you have to setup their plug-in first. Please check the link below,

http://harmony.apache.org/documentation/eclipse_update.html

It looks like either i need an older plugin from Apache Harmony or a new version of this JNI plugin.

Best Regards
Raghu

Thank you for pointing me, I hope that Harmony gurus clarify the role of Harmony Eclipse plugin, soon. But If to be honest I've never used this plugin while testing IDebug. I suppose that Harmony Eclipse plugin used for development needs (compiling and so on) e.g. adding some kernel jars to build path.

Hello Raghu,
I've received an unswer from Harmony developers about Harmony plugin
"It's not mandatory, but just makes life easier :)
The main purpose of Harmony plugin is to explain Eclipse where to get
all the needed jars and sources.

If you want to use Harmony with Eclipse but without plugin then you
should add Harmony JRE as usual and then add jars from bin/default
directory to the list.

Tim can comment about Eclipse <=> plugin version compatibility.

SY, Alexey"
(see for detail)

Hi

Seems that below urls are no longer available.
There is other place we can find those JVM ?

A.

Quoting - ISN Admin
It isn't necessary to apply the patch, instead you should try prepared builds for Windows* (http://people.apache.org/~gshimansky/NCAI/win_ia32_msvc_debug_nodebug.zip) or Linux* operating systems (http://people.apache.org/~gshimansky/NCAI/lnx_ia32_gcc_debug_nodebug.tar.gz). Those two builds are ready for use (that mean that NCAI patch's already applied). If you interests in details or want to add some improvements you could use Apache Harmony* svn repository and the patch introducing NCAI.
--vvl

Faça login para deixar um comentário.