Click here to Skip to main content
13,046,337 members (73,348 online)
Click here to Skip to main content


46 bookmarked
Posted 12 Jan 2008

How to Call Java Functions from C Using JNI

, 12 Jan 2008
This article covers calling Java functions from C using JNI. It also covers passing/returning simple parameters, arrays, and structure arrays in Java functions.
public class WorkOrder
	String		sumSerialId;	
	String		accessNumber;
	String		actionType;
	String		effectiveDate;
	String		fetchFlag;
	String		reason;
	String		accessSource;
	public WorkOrder(String szSumID,String szAccNum, String szActType, String szEffectDate, String fetchFlg, String szReason, String szAccSrc )
		this.sumSerialId = szSumID;
		this.accessNumber = szAccNum;
		this.actionType = szActType;
		this.effectiveDate = szEffectDate;
		this.fetchFlag = fetchFlg;
		this.reason = szReason;
		this.accessSource = szAccSrc;			

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior)
United Kingdom United Kingdom
Ahmad Qarshi is an IT Consultant and have good expertise in different development technologies. He loves to code in .NET, JavaFX, Delphi, XSLT/Schematron. Above all very keen to learn new stuff Smile | :)

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 13 Jan 2008
Article Copyright 2008 by ajalilqarshi
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid