[fpc-pascal] Access fpc libraries with Java ?

Sven Barth pascaldragon at googlemail.com
Fri Mar 28 07:39:17 CET 2014


On 28.03.2014 02:04, fredvs wrote:
> Your code is working PERFECTLY and trust me, even at StackOverflow.com, they
> do not know your trick, there are lot of questions for that without any
> working answer.
>
> Your GENIUS trick is to export name => Java_MyLib_MyProcedure.
> I do not know if that could be done with C libraries but here i have a HUGE
> argument to convert Java developers who need a native library to use fpc
> instead of C.

Then those users don't know where to look, because even Wikipedia 
documents this: http://en.wikipedia.org/wiki/Java_Native_Interface
And then there are even specific tutorials if you look for "JNI 
tutorial" and maybe some language name and with the advent of Android 
this got even more, because this is the way how you interface native 
with Java code there...

Regards,
Sven



More information about the fpc-pascal mailing list