[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.programming

JNI Wrapper for Delphi and FreePascal version 2.82 is here..

Ramine

5/14/2015 10:46:00 PM

Hello,


JNI Wrapper for Delphi and FreePascal version 2.82 is here..

I have worked hard today, because i have noticed that JNIWapper for
Delphi and FreePascal was not supporting return of String 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.82 to you, it is really now
a professional software of a good quality.


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

Email: aminer at videotron dot ca
Description:


This JNI Wrapper for Delphi and FreePascal provides a very owerful 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.

Amine Moulay Ramdane has enhanced more JNI Wrapper and ported it
to 64 bit, 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;
Language: FPC Pascal v2.2.0+ / Delphi XE+: http://www.freep...

Also i have added the supports for returning Strings and Arrays from Java.

Operating Systems: Windows.

This JNI Wrapper is very powerful , i have ported it to all the Delphi
XE versions and to FreePascal and to 64 bit and i have enhanced it more,
it is working with Oracle Java 6 and 7 and 8 both the 32 bit and 64 bit
versions, and the interface is very easy to use, i have worked hard to
bring this new version 2.8 to you , hope you will be happy with it.

You can download JNI Wrapper for Delphi and FreePascal version 2.82 from:

https://sites.google.com/site/aminer68/jni-wrapper-for-delphi-and-...

Thank you,
Amine Moulay Ramdane.


1 Answer

Ramine

5/14/2015 10:57:00 PM

0


Hello,

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.



Thank you,
Amine Moulay Ramdane.