![]() ![]() You require the following packages for JNI development: Eclipse for C development (See ' getting started' from User Guide).Eclipse for Java development ( Tutorial).You don't need to have JNI knowledge as this project can be used to learn about JNI, but reading introduction chapters 1 and 2 from the book first would help you a lot.makefiles ( Tutorial 1, Tutorial 2, Tutorial 3, and quick reference). ![]() I shall assume you have some familiarity with the following: Please post comments if you have questions/feedback. This combined with the JNI literature and other tutorials listed at the bottom of this article should help you getting started with JNI development. In this tutorial I will provide a sample project that I glued together based on various tutorials (see further readings) and explain each of the components. Developing, and especially debugging this custom code can be difficult and cumbersome, but it doesn't have to. Further, sometimes you may have custom 'C' code in your Java applications. An example of this is Eclipse's own interface, which on Linux is drawn by a native C library "GTK", thus the native Linux look. JNI is useful in many situations, for example if your Java applications needs to interface with a native C library. This article is focused on the configuration of Eclipse rather than explaining JNI itself, however there are links to JNI literature at the end. I.e, you can have a single project that can be both Java and C at the same time, and support a full code navigation and debugging of both languages. In this tutorial style article I'll discuss how to configure Eclipse for Java Native Interface (JNI) development based on a sample project that you can copy and modify. Cross language development in one project ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |