Re: JNI Best Practices with JDT/CDT? [message #75398] |
Thu, 10 July 2003 16:16 |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02995 seconds