#1342 Java FFI doesn't work in fansh?

jlist Tue 30 Nov 2010

Fantom Shell v1.0.56 ('?' for help)
fansh> using [java] java.io::File as JFile
  Invalid using: sys::ArgErr: Java FFI qname cannot contain space: [java] java.io::File

msl Tue 30 Nov 2010

The error gives you a hint:

using [java]java.io::File as JFile
           ^^
      No space here

fansh> using [java]java.io::File as JFile
Add using: using [java]java.io::File as JFile

M

jlist Tue 30 Nov 2010

Ah, thanks. I see some examples in the JavaFFI doc page with space

Login or Signup to reply.