JNI Wrapper for Delphi and FreePascal

JNI Wrapper for Delphi and FreePascal

JNI Wrapper for Delphi and FreePascal version 2.89

Authors: Jonathan Revusky, Amine Moulay Ramdane and Salvatore Meschini.

Email: aminer@videotron.ca

Description:

This JNI Wrapper for Delphi and FreePascal provides a powerful and simplified object-oriented API for doing mixed language programming in Java and Delphi (Object Pascal language) or FreePascal. This may provide an easier and more productive way of getting Win32 and Win64 features in Java projects and integrating legacy code (at least for the Delphi or FreePascal community). Please read the readme file inside the zip file to learn more.

I have noticed that JNIWrapper for Delphi and FreePascal was not supporting returning of Strings and Arrays types from Java, so i have implemented that and i have now enhanced JNI Wrapper to be very powerful , so it's now supporting all the necessary functions and methods and and much more... hope you will happy with it cause i have worked hard to bring this new 2.89 to you, it is really now a professional software of a good quality.

Also i have enhanced more JNI Wrapper and ported it to 64 bit and to both FreePascal and the Delphi XE versions, here is the functions that i have implemented and added:

function JstringArrayToDTStrings(jarr : JArray) : TStrings;

function JdoubleArrayToDdoubleArray(jarr : JdoubleArray) : TDdoubleArray;

function JfloatArrayToDsingleArray(jarr : JFloatArray) : TDsingleArray;

function JcharArrayToDwordArray(jarr : JCharArray) : TDwordArray;

function JbyteArrayToDshortintArray(jarr : JByteArray) : TDshortintArray;

function JshortArrayToDsmallintArray(jarr : JShortArray) : TDsmallintArray;

function JbooleanArrayToDbooleanArray(jarr : JBooleanArray) : TDbooleanArray;

And don't forget to call TJavaVM.freeRef() method from Delphi or FreePascal when you need to garbage collect and free the memory that was allocated.

Language: FPC Pascal v2.2.0+ / Delphi XE+: http://www.freepascal.org/

Operating Systems: Windows.

Please click on the small arrow on the right of the zip file bellow to download...