[fpc-pascal] Compiling to Java
Sven Barth
pascaldragon at googlemail.com
Mon Aug 12 10:15:37 CEST 2013
Am 12.08.2013 10:04, schrieb Michael Schnell:
> Right now, the reach of fpc (and Lazarus) "Write once compile
> everywhere" ) is being extended to Android (e.g. by having fpc compile
> to Dalvik).
>
> AFAIK, compiling to Android Dalvik already woks rather well.
> IIRC, here, first fpc compiles to Java byte code and then this is
> converted to Dalvik Word code.
Yes, as this is the approach that normal Android development follows as
well (first compile as Java Bytecode and then convert to Dalvik Bytecode)
> So it should be possible to create "normal" Java applications, as well.
>
> Can this be used to do (arch independent) Desktop applications ?
>
> Can this be used to do (arch independent) "server site Java" Web
> applications ?
Both are yes as long as you convert any necessary class files to Pascal
headers, so that they can be imported correctly.
> Can the Lazarus GUI designer be used to do the GUI of such (Desktop)
> applications ?
No.
For more information please take a look here:
http://wiki.freepascal.org/FPC_JVM
Regards,
Sven
More information about the fpc-pascal
mailing list