[fpc-devel] New FPC target: JVM

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Aug 21 15:33:58 CEST 2011


On 21 Aug 2011, at 15:29, Paul Ishenin wrote:

> 20.08.2011 16:49, Jonas Maebe wrote:
>> Download information, usage information etc is available at http://wiki.freepascal.org/FPC_JVM
>> 
>> Regarding Android: the compiler and the system unit both use a bunch of standard functionality from the JDK to implement various features. So Android support would probably require quite a bit of extra work. I have not looked into that.
>> 
>> Enjoy!
> Some people from Russian community tried to start to enjoy but failed :) http://www.freepascal.ru/forum/viewtopic.php?t=7325#p55875

The problems are
a) he is adding the '.class' extension when trying to run the program. You have to specify the name of the class to run, not the name of the class file (so leave out the '.class')
b) he should specify the base path to the FPC rtl classes via the -cp parameter, as explained at http://wiki.freepascal.org/FPC_JVM/Usage#Running_compiled_programs

I've added a quick start example at http://wiki.freepascal.org/FPC_JVM#Quick_start


Jonas


More information about the fpc-devel mailing list