Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to start JNI ?

 
S Rubia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I want to start JNI ,but i had aconfusion
1--What package or product should be installed to work in JNI And from which link i can download it?
2--about C++ ,that what version of C++ should i used ,I only heard of VisualC++ (microsoft prd) is this required for JnI or there is some other companys C++ required.
again from which link to download?
thanks in advance.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need anything except the standard Java Developer's Kit. The JNI interface uses only extern "C" linkage, so you can actually use any C++ compiler appropriate for your platform.
A great place to start is Sun's JNI tutorial -- see http://java.sun.com/docs/books/tutorial/native1.1/index.html .
 
S Rubia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Earnest,
but can u tell me
1--the name of Native Interface and in which package it exists
2--and from which link i can download the API for this Interface..
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go and read the tutorial at the link I provided, which will explain that the C header files are included in the JDK (so you don't need to download anything else, as I said) and that there's no Java package that corresponds to the JNI. The tutorial contains all the information you need. Please work through it and you'll understand.
 
I've never won anything before. Not even a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!