[Lazarus] Feature request: Support Java classes syntax in code tools

Sven Barth pascaldragon at googlemail.com
Tue Mar 10 11:12:07 CET 2015


Am 10.03.2015 10:28 schrieb "Mattias Gaertner" <nc-gaertnma at netcologne.de>:
>
> On Mon, 9 Mar 2015 21:36:18 +0100 (CET)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
> >
> >
> > On Mon, 9 Mar 2015, Mattias Gaertner wrote:
> >
> > > On Sun, 8 Mar 2015 19:08:23 +0100 (CET)
> > > Michael Van Canneyt <michael at freepascal.org> wrote:
> > >
> > >> [...]
> > >> The codetools cannot handle the jvm extensions.
> > >> As a result, as soon as you include e.g. the androidr14 unit, code
completion just stops working.
> > >>
> > >> Also, you cannot set the ppcjvm compiler as compiler. If you do, you
get an error:
> > >>
> > >> The compiler file "/usr/local/bin/ppcjvm" does not look correct:
> > >> classes.ppu not found. Check your fpc.cfg.
> > >>
> > >> Logical, because this unit does not exist for the JVM target...
> > >>
> > >> Tested with lazarus 1.2.x, 1.3 and 1.5.
> > >
> > > The wiki page about JVM seems to be outdated.
> > > http://wiki.freepascal.org/FPC_JVM
> > >
> > > What is now the right way to get a ppcjvm?
> >
> > Just compile it from trunk, as per
http://wiki.freepascal.org/FPC_JVM/Building
>
> Just compiling gives:
> Error: Assembler jasmin.jar not found, switching to external assembling
>
> Jasmin has not released a version with the patches mentioned on the
> wiki. So I guess you still have to build it yourself.
>
> I tried the instruction for Jasmin:
> I downloaded and unpacked jasmin 2.4.
> Applying the patch failed, because it changes line endings. patch needs
> the option --binary for that.
> It still fails on two files:
> ./src/jasmin/parser.java.rej
> ./src/jasmin/sym.java.rej
>
> Calling build.sh results in
> build.sh: line 2: $'\r': command not found
> build.sh: line 16: $'\r': command not found
>
> So changing the line endings is a bad idea.
>
> What is now the right way to get a ppcjvm?

The prebuild Jasmin should be available on our FTP (don't know the link
right now, maybe either JVM related or utils).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150310/97df34e5/attachment-0003.html>


More information about the Lazarus mailing list