Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

JNI in Eclipse, or …?

Thread view: 
Hendrik Maryns - 11 Dec 2007 17:10 GMT
Hi all,

Does anyone have experience with managing JNI C files inside his IDE?  I
use Eclipse, so would prefer a solution for it, but maybe another IDE
handles this better.

I posted a specific question about setting this up to the groups
eclipse.tools.jdt and e.t.cdt on news.eclipse.org, but wanted to ask
here more generally: how do you manage JNI projects?

Thanks for the feedback.

Also: is it possible to step into the JNI functions with a debugger?
Either the Java one or the C one.  (Again, preferably the Eclipse
built-in debuggers, but any other will do.)

I suggest you just believe me that I need JNI, unfortunately.

Cheers, H.
Signature

Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Arne Vajhøj - 12 Dec 2007 01:52 GMT
> Does anyone have experience with managing JNI C files inside his IDE?  I
> use Eclipse, so would prefer a solution for it, but maybe another IDE
[quoted text clipped - 3 lines]
> eclipse.tools.jdt and e.t.cdt on news.eclipse.org, but wanted to ask
> here more generally: how do you manage JNI projects?

I think that:
  - two independent projects
  - a C project that creates a dll/so/exe
  - a Java project that uses that and creates a jar
would be the way to go.

Possible combined with a non-IDE final build (make & ant).

Arne
Hendrik Maryns - 12 Dec 2007 10:47 GMT
Arne Vajhøj schreef:
>> Does anyone have experience with managing JNI C files inside his IDE?  I
>> use Eclipse, so would prefer a solution for it, but maybe another IDE
[quoted text clipped - 11 lines]
>
> Possible combined with a non-IDE final build (make & ant).

Thanks.

Do you intend the Java-created jar to include the C files/library as well?

H.
Signature

Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Gordon Beaton - 12 Dec 2007 07:28 GMT
> Also: is it possible to step into the JNI functions with a debugger?
> Either the Java one or the C one. (Again, preferably the Eclipse
> built-in debuggers, but any other will do.)

There are several good suggestions in this thread, especially in Chris
Uppal's second post (number 6 in the thread):

http://groups.google.com/groups?threadm=1145543826_81%40sicinfo3.epfl.ch

/gordon

--


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.