Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Re: JNI Best Practices with JDT/CDT?
Re: JNI Best Practices with JDT/CDT? [message #75398] Thu, 10 July 2003 16:16
Eclipse UserFriend
Originally posted by: mikhailkhod.rogers.com

Probably the most difficult part of the JNI implementation is the debugger.
We have discussed some possible ways but decision hasn't been made yet.

Mikhail Khodjaiants

<user@domain.invalid> wrote in message
news:3F0C2F09.2070202@domain.invalid...
> I'd like to now if anyone is using JDT & CDT to do JNI development
> using Eclipse.
>
> I've begun some work in this area and I'm interested in any tips/best
> practices/warnings anyone would be interested in providing.
>
> Currently, I use emacs and ant (enhanced with the cpptasks.jar and
> ant-contrib.jar additional tasks for building C code using ant). This
> works rather nicely, when I do a build any compiler errors in either
> my Java or Native code are handily parsed and next-error brings to the
> appropriate source file etc.
>
> My first try at moving this project to Eclipse simply involved creating
> a new (Java) project and using my previous build.xml to do a "build all"
> when necessary. Working with the Java code went like a charm. The C
> code was editable from within the project and it would compile using
> Ant/build all (once I pointed the internal Ant to the correct ant-contrib
> and cpptasks jar files). Unfortunately, if there were C compiler errors,
> while they showed up in the consoled they weren't clickable which wasn't
> especially helpful.
>
> I've now got the notion that what I'll really want to do is set up two
> projects -- a Java project for the Java code and a second, C project
> (which depends on the Java project? I think this is possible) for
> building the C code in a more convenient manner. In this scheme it is
> note entirely clear where the javah step might go. Ant? A new plugin?
>
> Before I went to far down this path, I thought that it might
> be wise to post this query. It seems that Eclipse's language
> neutrality would make it an ideal IDE for this kind of problem.
> Any thoughts/suggestions/tips/comments will be greatly appreciated.
>
Previous Topic:Re: hex format in debug view
Next Topic:Re: JNI Best Practices with JDT/CDT?
Goto Forum:
  


Current Time: Fri Nov 08 21:52:20 GMT 2024

Powered by FUDForum. Page generated in 0.02995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top