Search
 Advanced SearchView Cart   Checkout   
 Location:  Home » Books » General » Essential Jni: Java Native Interface (Essential Java)January 7, 2009  
Browse
Books
Computers
Electronics
Related Categories
• General
Networks, Protocols & APIs
Networking
Computers & Internet
Subjects
• General AAS
Networks, Protocols & APIs
Networking
Computers & Internet
Subjects
• General AAS
Networking
Computers & Internet
Subjects
Books
• General
Java
Programming
Computers & Internet
Subjects
• General AAS
Java
Programming
Computers & Internet
Subjects
• General
Languages & Tools
Programming
Computers & Internet
Subjects
• General AAS
Languages & Tools
Programming
Computers & Internet
Subjects
• General
Programming
Computers & Internet
Subjects
Books
• General AAS
Programming
Computers & Internet
Subjects
Books
• General
Software
Computers & Internet
Subjects
Books
• General AAS
Software
Computers & Internet
Subjects
Books
• General
Programming
Web Development
Computers & Internet
Subjects
• General AAS
Programming
Web Development
Computers & Internet
Subjects
• General
Computers & Internet
Subjects
Books
• General AAS
Computers & Internet
Subjects
Books
• General AAS
Mathematics
Professional Science
Professional & Technical
Subjects
• Paperback
Binding (binding)
Refinements
Books
• Printed Books
Format (feature_browse-bin)
Refinements
Books
Essential Jni: Java Native Interface (Essential Java)
Essential Jni: Java Native Interface (Essential Java)
Author: Rob Gordon
Publisher: Prentice Hall PTR
Category: Book

List Price: $34.95
Buy New: $3.24
You Save: $31.71 (91%)
Buy Used from $3.24

Avg. Customer Rating: 4.0 out of 5 stars(27 reviews)
Sales Rank: 828494

Languages: English (Original Language), English (Unknown), English (Published)
Media: Paperback
Number Of Items: 1
Pages: 498
Shipping Weight (lbs): 1.4
Dimensions (in): 9 x 6.1 x 0.9

ISBN: 0136798950
Dewey Decimal Number: 005.133
UPC: 076092003236
EAN: 9780136798958
ASIN: 0136798950

Publication Date: March 1998
Availability: Usually ships in 1-2 business days

Similar Items:

  • Java(TM) Native Interface: Programmer's Guide and Specification (Java Series)
  • Java Concurrency in Practice
  • Professional Java Native Interfaces with SWT/JFace (Programmer to Programmer)
  • Code Complete: A Practical Handbook of Software Construction
  • Effective Java (2nd Edition) (Java Series)

Editorial Reviews:

Product Description
With Java maturing and branching out into so many different APIs, programmers are finding it difficult to find good, solid coverage of the many new need-to-know APIs in the many "catch all" Java books on the market. This title answers that need by presenting no-nonsense, nuts-and-bolts coverage of the new "niche" APIs like JNI, JTAPI, and the Java Wallet in a task-oriented reference format that gives coders the answers they need. .

Amazon.com Review
The Java Native Interface (JNI) enables programmers to share data and make function calls between programs written in different languages. A program created in Java can refer to the contents of a program written in C++, and vice versa. The communication also works between Java and C. This book explains how to use the JNI to make Java programs communicate with their neighbors.

First things first. As is customary in programming books, the author starts with a "Hello, World" example, except here, the program is written in both C and Java. Gordon walks you through the source code in each language, explains compilation, and quickly gets to the mechanics of using the javah utility to generate an include-able .h file.

After the procedural walk-though, Gordon strides into specifics, such as how to get a C/C++ program to set a variable that exists in a Java program and how to deal with native types. He compares object architectures and gets into some detail on arrays, strings, exceptions, and producer-consumer relationships. You'll find plenty of information on input and output, too--the author shows the means of writing to POSIX and Win32 ports. A cool chapter has to do with setting up the Java Developer's Kit as a Windows NT service via the Service Control Manager.

A full JNI class reference with minimal annotation ends the book.


Customer Reviews:   Read 22 more reviews...

5 out of 5 stars Great tutorial as well as reference book   February 24, 2006
I needed a good reference to JNI in order to implement a set of JAVA API's that wrap around an existing C++ library. I would not have been able to accomplish this task without the help of this book. Not only did I use the book as a learning material (tutorial), I also found myself using it extensively as a primary reference source. If you are working with C++, I recommend that you read chapter 9 before starting your work.

JNI is time consuming and awkward. If you can avoid using it, please do so.




3 out of 5 stars Skimps on too many areas   January 28, 2002
  9 out of 11 found this review helpful

Easy to read and covering many areas of JNI usage. However, when one settles to write an application in earnest, the book starts feeling superficial. The reference is meager on the Sun web page and not enhanced in the book. For instance, here's a typical argument explanation: "clazz: a Java class object". No indication as to what the usage really is, just a statement of what type it is. This sort of treatment is unfortunately typical. Memory management is barely touched, and many areas are not covered. I expect to be told if a particular method manages memory or not, so I can take adequate care in my application. I expected a detailed discussion on how Java and corresponding C/C++ buffers are managed in general; How to navigate through objects to data that may not be directly available from the calling object; How to access Java static functions, like the utility libraries from native code (or a discussion why not). etc... Examples are provided and thoroughly explained in the "Guide" part of the book, but are by no means a comprehensive coverage of the usage and features of JNI.

I rate it 3 stars -- a good introduction, but not a workhorse desk reference. Good to borrow and read through to see how JNI works, but one needs more substantial information to trully write JNI code as part of an application.


5 out of 5 stars A good book on JNI   December 11, 2001
  3 out of 3 found this review helpful

I thought this was a decent book on JNI.

One reader rated the book one star because it required knowledge of C/C++. However, since the whole point of JNI is to make calls to native objects written in C++, getting upset that the whole book isn't only about Java seems kind of odd. I think the reader was also mad that he had to buy another book to learn C/C++. To me, the title was quite clear concerning the contents of the book.

I would recommend this book to anyone who wants to learn JNI. If you want to learn C or C++, buy a different book since that's not what this one's about.


2 out of 5 stars For most applications the JavaSoft site covers what you need   May 27, 2001
  2 out of 5 found this review helpful

As my title says "For most applications the JavaSoft site covers what you need." In working through this book I often found it easier just to surf over to:

...

And figure it out. Of course the Sun site doesn't cover NT Services, etc.. So the book isn't a total loss....

Steve


1 out of 5 stars Not for Java programmers - catered to C/C++   May 24, 2001
  4 out of 26 found this review helpful

If you are a Java programmer trying to learn how to connect to C/C++ libraries this book is definitely not for you. You will have to buy another book to supplement this one just learn C/C++ so you can run the examples which by the way do not work. I was disgusted with this book as I had read a few positive reviews, but as I read them closer they were all authored by C/C++ programmers. Again this book is not a Java programmers book and should be cast aside by such.

Powered by: Dknc, inc. and Amazon.com


For your safety and security, orders are processed through amazon.com