Where do we find best tutorials for JNI

hi every one
i am new to JNI and i want to know where do we can get best examples on JNI.

See this links:
http://www.servertec.com/products/jenie/docs/stec/jenie/Dll.html
http://www.servertec.com/products/jenie/docs/stec/jenie/Function.html
Here are 2 sample codes:
1. have a c DLL (MyDll) stdcall fnc as follows.
stdcall int MyFnc(int FileNo, int IOType, unsigned char * DataToWrite, unsig
ned char * DataRead);
class X {
private native int MyFunc(int fileNo, int IOType, byte[] DataToWrite, byte[]
DataRead);
public static void main(String args[]) {
X p = new X();
byte[] c= new byte[512];
byte[] c2= new byte[512];
int result = p.MyFunc(1,0,c,c2);
System.out.println(result);
static {
System.loadLibrary("MyDll");
2. public class DLLBridge
public DLLBridge() {
public native void RprtMain();
static{
System.loadLibrary("Reports");
public static void main(String[] args) {
DLLBridge dbridge = new DLLBridge();
dbridge.RprtMain();
That is the signature of the C function that you need to write in order to
implement the RprtMain() method that you declared as "native" in your Java DLLBridge class. Assuming you have an existing function in a DLL that you are trying to call, you will typically just write this function to call the other function. If the other function has parameters, you will
typically use JNI functions to get the parameter values and massage them into the form required by that existing function, and do the reverse with the function result.
Of course, there is no requirement that your native method call
pre-written C functions. You can implement your native method any way you want to.
I have not tested the code, just wrote down. Hope this will help you.

Similar Messages

  • Where do i find video tutorials for GarageBand '08?

    I can only locate video tutorials for GarageBand '09... I have GarageBand '08. Where do I find tutorials for this?

    Click here for them.
    (40555)

  • Hi, where can I find more templates for numbers?

    I wonder if anyone knows where can I find more tmplates for Numbers?

    From my point of view, the best source of templates is the chapter 12 of Numbers User Guide.
    Yvan KOENIG (VALLAURIS, France) mercredi 22 juin 2011 12:04:16
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Where can I find linux drivers for my laptop? Does lenovo support provides that to download?

    Dear All,
    I purchased a Lenovo G570 (Model Name: 20079).
    Where can I find linux drivers for my laptop?
    Does lenovo support provides that to download?
    Sincerely,
    Srinivas Nayak

    Hello snayak
    Do not worry about Linux drivers for your laptop. All needed drivers for most of the machines are on the Linux kernel. Most hardware are recognized by latest kernel. So all you have to do is install your distro and enjoy Linux.
    The best way to check if all hardware are recognized is booting up a distro in live mode and test the hardware.
    You can make a test with Linux Mint, and install their new and amazing DE called Cinnamon. I'm sure you will enjoy it.
    Regards
    abvasili
    I'm just a volunteer. I like to help others where I can. Do my ideas work? I hope so. o_O
    Who helped you today? Do not forget to thank him.
    My hardware: TP x120e 0596-2ru. Windows 7, sp1, 64Bit, English, installed in UEFI mode.

  • Where can i find beautifull interfase for designing forms

    hi friends
    where can i find beautifull interfase for designing forms
    if you know any where please help me.
    thanks in advance.
    shoja.

    Hi satiomax,
    Were you perhaps refering to the Sony Ericsson HBH-IS800 Bluetooth headsets? Sony Mobile phones have their own separate community and so are best qualified to address any issues or questions you may have on Sony mobile phones and peripherals. You can visit the Sony Mobile Community here.
    http://talk.sonymobile.com/community/support

  • Where can I find a tutorial for Dreamweaver CS6?

    Where can I find a tutorial for Dreamweaver CS6?

    First web site in DW CS6 - (5-part written tutorial with sample files)
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1_cs6.html
    Nancy O.

  • Where can I find a tutorial for editing iMovie on iPhone 4S

    Where can I find a tutorial for editing iMovie on iPhone 4s

    http://support.apple.com/kb/ht4174
    and:
    http://www.apple.com/iphone/from-the-app-store/apps-by-apple/imovie.html

  • New MacBookPro. Where can I find a driver for my Microtek Scanmaker 3600

    I recently bought a new MacBook Pro (10.6.8) but to date, haven't been able to find any software/driver to use for my scanner, including the Microtek site. I have a Microtek Scanmaker 3600 that still works perfectly. I have searched forums and online sites for software to use the scanner on the new laptop and hate to think I need to buy a new scanner when the 3600 works fine. I have an HP Deskjet 930C and was able to find the software/driver to use on the new laptop. Does anyone know where I can find the software/driver to get my scanner to work?
    Where can I find a driver for my Microtek Scanmaker 3600. Tried VueScan and TwainSane without success. Do not want to buy a new scanner when old one runs great. Please Help?
    Thanks!

    Thank you for the response.
    I downloaded it and it keeps telling me "No Scanner Detected." I looked on their website under supported scanners, found my Microtek ScanMaker 3600 and it says "NO" for Mac.
    http://www.hamrick.com/vuescan/microtek_scanmaker_3600.html
    I just sent an email to them asking if VueScan does support a my scanner. I hope it does. I have been searching but am not proficient or know enough of what to look for. I just don't want to have to buy another scanner.

  • Where can i find a download for acrobat x pro

    where can i find a download for acrobat x pro, i lost a hard drive and i am trying to get everything back ?

    http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    You will still need your SN. As long as you registered, you can just add a tab in your browser and go to Adobe.com. In the upper right corner there should be a welcome with your name. Move to the small down arrow and select My Products and Services. That should give you your SN of the products that have been registered. Please make a backup of your download and SN for the future. If you had an upgrade version, you will also need the SN of the qualifying product.

  • Where can I find the reference for modifying registry key for acrobat reader

    I am a Web Developer and I need to limit the option the user may choose in acrobat reader plugin.
    I doubt if there is option to configure in Windows Registry on HKCU\Software\Adobe\Acrobat Reader\9.0\PrefsDialog.
    Anyone know where I can find the reference for those registry key?
    I have downloaded sdk91_v2_win.zip file but I cannot find any reference.

    Refer to this:
    Direct Download Links for Adobe Software
    Mylenium

  • Where can I find iPhoto download for OS 10.9

    Where can I find iPhoto download for OS 10.9 on a Mac Book Air

    reinstall from the original source
    Could be
    1 - the restore disks that came with the computer - if it came with CDs and you do not know where they are then contact Apple to see if they can be replaced
    or
    2 - the iLife DVD that you purchased
    or
    3 - the app store - log in under the Apple id used to purchase the software or to set up the computer - look under purchases - you might have to unhide or accept the Application first
    LN

  • HT4972 Where can I find the link for updating to iOS5 version?

    I have iPad version 4.3.5(8L1) and want update to the recent version. As I understood, has to go to iOS5 first and then further to the latest version. Where can I find the link for updating to iOS5 version? Thank you.

    you have iOS 4... See Here...  http://support.apple.com/kb/HT4972
    OR...
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    Note:
    The iPad 1 can only update as far as iOS 5.1.1

  • Where i can find the document for ABAP-SD techno functional guys

    where i can find the document for ABAP-SD techno functional guys

    Dear Jagrut,
    Well there is no separate section for technofunctional people like ABAP SD. I think it wil not be an easy proposition also to have a separate section. Regarding the documents, I have posted lot of queries on technofunctional aspect of SD and I have got good responses from the SD forum. So you can try it here.
    A small search on SDN SD forum most of the times will help you to answer your query. 
    I will suggest you to visit  http://sap-img.com/sap-sd.htm. It will give you the overview of SAP SD module.
    Moreover there is a separate section of FAQs with answers which will help you in great deal.
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • Where can I find the script for the sample table?

    Hi,
    Where can I find the script for the sample tables, like emp, dept, ... ?
    Regards,
    Rosaline

    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a77069/preface.htm#420431
    Hi,
    Where can I find the script for the sample tables, like emp, dept, ... ?
    Regards,
    Rosaline

  • Where do i find an app for word documents such as letters, resumes, ect

    Where do I find an app for a word document such as letters, resumes, ect.?  I have a

    LibreOffice is free/donationware, saves/reads Office & Word, makes PDF's, spreadsheets, database etc etc.
    Cross platform too, sweetest free program out there
    https://www.libreoffice.org/

Maybe you are looking for

  • Lightroom is shown as installed in creative cloud desktop app but it is not

    Hi, I am new to the creative cloud and signed up for the photographic bundle. I went to the lightroom download first in the creative cloud download center and downloaded the cc desktop app as described. After installation the cc desktop app shows lig

  • Full time Labview Computer Systems Engineer – London, UK

    BPP-TECH are seeking engineers to carry out the development and testing of software for instrumentation packages used in the international offshore oil and gas industry. The software uses National Instrument's Labview as a base and it is the intent t

  • Selection Screen in web error

    Dear All, I am executing a report in web in Java runtime (BI 7 enviornment). I get the selection screen. I have a variable for which I have to give the range. I press F4. A new sub window openes where I can give from and to value. I click on F4 again

  • Raw material Stock not reducing when cancelling Subcontracting MIGO

    Dear All, We are facing problem in subcontracting process. Suppose we have a HALB material X which is made up of material a and b. When we are receiving material X stock of material a and b is reducing at vendor end. but when we are cancelling MIGO o

  • Convert text to hyperlink within object

    Hi, How can I convert part of the text within a text caption to a hyperlink? I do not want the whole text caption to be a Flash hotspot though... Thanks for your time