Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
38 used & new from $0.94

Have one to sell? Sell yours here
 
   
Java(TM) Native Interface: Programmer's Guide and Specification (Java Series)
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Java(TM) Native Interface: Programmer's Guide and Specification (Java Series) (Paperback)

by Sheng Liang (Author)
3.7 out of 5 stars See all reviews (15 customer reviews)

List Price: $44.99
Price: $37.16 & this item ships for FREE with Super Saver Shipping. Details
You Save: $7.83 (17%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 3 left in stock--order soon (more on the way).

Want it delivered Tuesday, July 21? Choose One-Day Shipping at checkout. Details
17 new from $27.73 21 used from $0.94

Frequently Bought Together

Customers buy this book with Java(TM) Virtual Machine Specification, The (2nd Edition) (Java Series) by Tim Lindholm

Java(TM) Native Interface: Programmer's Guide and Specification (Java Series) + Java(TM) Virtual Machine Specification, The (2nd Edition) (Java Series)

Customers Who Bought This Item Also Bought

Essential Jni: Java Native Interface (Essential Java)

Essential Jni: Java Native Interface (Essential Java)

by Rob Gordon
Java Concurrency in Practice

Java Concurrency in Practice

by Brian Goetz
4.8 out of 5 stars (59)  $37.79
Effective Java (2nd Edition) (Java Series)

Effective Java (2nd Edition) (Java Series)

by Joshua Bloch
4.9 out of 5 stars (35)  $44.66
Java Generics and Collections

Java Generics and Collections

by Maurice Naftalin
4.6 out of 5 stars (23)  $23.09
Professional Java Native Interfaces with SWT/JFace (Programmer to Programmer)

Professional Java Native Interfaces with SWT/JFace (Programmer to Programmer)

by Jackwind Li Guojie
3.5 out of 5 stars (2)  $42.34
Explore similar items

Editorial Reviews

Amazon.com Review
Written for the experienced Java developer, The Java Native Interface documents the latest in native code programming for the Java platform using the Java Native Interface (JNI) with C/C++. Author Sheng Liang built the book around "dos and don'ts," even specifying within the introduction when you should and when you should not use JNI. Though sometimes densely written, this title certainly conveys a good deal of technical information on using native code with Java.

After a simple JNI "Hello World" code example, this book explores multiple aspects of the JNI API, starting with the use of Java strings and arrays within native code. Liang follows by transitioning into calling Java members and methods in C/C++. Here the author presents caching strategies for improving the performance of native code that interacts with or executes Java programs, including a discussion of local and global references that incorporates global weak references in Java 2.

The book also looks at handling exceptions within C/C++ code, as well as tips for working with Java threads. The author shows how to simplify access to C/C++ code through shared stubs and how to use peer classes to encapsulate native code from within Java. A section on common traps and pitfalls lists some common pitfalls to avoid when working with the JNI. After presenting the JNI specification, the author provides the most immediately useful text in the book--over 100 pages of reference material listing JNI data types and methods.

As a reference and programming guide, The Java Native Interface provides concise and timely technical details on getting Java and C/C++ code to coexist within your projects. --Richard Dragan

Product Description
The complete tutorial, programming guide, and reference for JNI, the interface which facilitates the integration of Java with existing C and C++ code.

See all Editorial Reviews


Product Details

  • Paperback: 320 pages
  • Publisher: Prentice Hall PTR (June 20, 1999)
  • Language: English
  • ISBN-10: 0201325772
  • ISBN-13: 978-0201325775
  • Product Dimensions: 9.2 x 7.2 x 0.8 inches
  • Shipping Weight: 1.4 pounds (View shipping rates and policies)
  • Average Customer Review: 3.7 out of 5 stars See all reviews (15 customer reviews)
  • Amazon.com Sales Rank: #121,314 in Books (See Bestsellers in Books)

Look Inside This Book

What Do Customers Ultimately Buy After Viewing This Item?

Java(TM) Native Interface: Programmer's Guide and Specification (Java Series)
72% buy the item featured on this page:
Java(TM) Native Interface: Programmer's Guide and Specification (Java Series) 3.7 out of 5 stars (15)
$37.16
Essential Jni: Java Native Interface (Essential Java)
13% buy
Essential Jni: Java Native Interface (Essential Java) 3.9 out of 5 stars (27)
Java(TM) Virtual Machine Specification, The (2nd Edition) (Java Series)
8% buy
Java(TM) Virtual Machine Specification, The (2nd Edition) (Java Series) 3.0 out of 5 stars (7)
$42.54
Java Concurrency in Practice
6% buy
Java Concurrency in Practice 4.8 out of 5 stars (59)
$37.79

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(2)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

15 Reviews
5 star:
 (5)
4 star:
 (5)
3 star:
 (1)
2 star:
 (3)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
3.7 out of 5 stars (15 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
28 of 29 people found the following review helpful:
4.0 out of 5 stars Dont Buy this Book It is Freely Available on the Java Site, April 1, 2002
By Vamsi P. (Redmond, WA USA) - See all my reviews
This is book is very handy if you are programming for JNI. I went and bought this book but later found that is free on the Sun's Java site.... So buy it only if you need a paper copy. If you are ok with a PDF or html copy goto sun's website to get it.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
22 of 22 people found the following review helpful:
4.0 out of 5 stars Good examples, concise approach, May 27, 2000
By Nick Bauman (Minneapolis) - See all my reviews
I had to integrate our company's distributed Java component-based application with a vendor's C/C++ - only libraries. My C++ skills had gotten pretty rusty and so I bought the Gordon JNI book and was really disappointed.

I then bought this book and was much happier with its examples and approach than the Gordon book. While the other reviewers in this page cited that they thought the book was bad or the examples didn't compile, they may be justified, but since they have only to choose from this and the Gordon book on JNI, I think they will find this book is far clearer and more concise.

What's more is that it's terse enough that you can get the whole book read during the course of a 3 week project.

And as far as the author having a bias towards Java is concerned: Duh.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
16 of 17 people found the following review helpful:
4.0 out of 5 stars Good book but do not buy it. It is available FREE from SUN., April 25, 2003
The reason I write this comment is that I was suprised
that this book is available in electronic form, free
of charge from Sun website.
As far as I read the book, it is quite good but I did not
test anything. I probably will in my summer project and I will
inform you if what the Native Interface promised , did
finally work.
Anyway the Sun website for the book is :

[website]

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Ad
 
Most Recent Customer Reviews

5.0 out of 5 stars Concise, Complete, and Definitive
I was not looking forward to learning and using JNI, but found myself in a position where that was in fact what I had to do. Read more
Published 7 months ago by Jeff S. Weber

5.0 out of 5 stars Programmer
This is one of the best Java programming books around. Not only are all the major issues surrounding JNI programming addressed, but the author also presents a great disussion on... Read more
Published on July 20, 2002 by J. E. Meyer

3.0 out of 5 stars Not enough examples.
I have a feeling Sun Micro had more to do with why there's not enough examples of how to do advanced features of JNI. Read more
Published on March 28, 2002 by dsfa

2.0 out of 5 stars Where's the rest of the book?
While I have enjoyed many of Sun's books, this one is simply inadequate. The organization of topics was mediocre, but, in my opinion, the book is a disappointment because of its... Read more
Published on March 5, 2002 by Chris

4.0 out of 5 stars In depth coverage
While new JVMs are reducing the need for JNI (speed is getting better), there are some specialty things that are not documented well anywhere else. Read more
Published on September 24, 2001 by Manuel A. Ricart

4.0 out of 5 stars The best so far
The problem with JNI is that there are no to many books. When you start using JNI it looks complex. After a while you realized is simple. Read more
Published on May 1, 2001 by J. Ortiz

5.0 out of 5 stars This is an excellent practical guide to JNI...
...and I'd pay $40 (or whatever) for chapter 10 by itself. Wondering why getStringChars() returns a pointer to a char[] with some gibberish at the end? Check out section 10. Read more
Published on March 16, 2001 by Tom Copeland

1.0 out of 5 stars Didn't find it useful
We tried to use this book for our Java/JNI development effort. It seemed like a good resource at first, but fell apart when we tried to write JNI code based on the book's... Read more
Published on February 9, 2001

2.0 out of 5 stars Book falls short...
While the book has some good information and examples, it definitely doesn't take the reader through JNI in a clear fashion. Read more
Published on March 27, 2000 by Lawrence M. Pizette

2.0 out of 5 stars only covers cursory overview of JNI
Though I liked presentation of the book and how it explained concepts, the book only covers very cursory overview of the JNI and fails to show any complete realistic examples. Read more
Published on October 7, 1999

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Discover Oregon

Garmin Oregon at Amazon.com
You'll find that on the trail, the new Garmin Oregons exchange waypoints, tracks, and geocaches with other Oregon and Colorado units.

Shop all Garmin

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Generate Power

Shop for generators
Shop our huge selection of generators in the Amazon.com Home Improvement Store.

Shop for generators

 
Ad

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
Glenn Beck's Common Sense
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates