[fpc-pascal] java events calling pascal code vs java calling library.

fredvs fiens at hotmail.com
Thu Apr 24 21:53:41 CEST 2014


Hello.

Could it be possible to have some infos ans arguments about this :
Im newbie in Java-link-with-fpc and I would like to understand what
can/cannot be done.

Here what i understood (If im wrong, please, correct me...)

=> All Java os (Android and friends) can only deal with Java class.

=> If i want to use Pascal code, i need first to create a Java class and,
via Java events-methods it is possible to execute Pascal code. The Pascal
code is "inside" the Java class when compiling Java application.

=> A other way to use Pascal code is via a Pascal library. You need to
compile the fpc library with some "Java arguments", and so the fpc library
is perfectly Java-compatible. The disadvantage is that you need to give that
"external Java native library" with your application.

=> If giving that "external Java native library" with your application is
not a problem,, using fpc library is much easier than using Pascal code via
Java events-methods.

Please, where im wrong, what else must i know... ?

Many thanks.

Fred



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/java-events-calling-pascal-code-vs-java-calling-library-tp5719036.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list