(* Collection of code snippets by Arne Vajhøj *)
(* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) *)
program call(input, output);

{$include fpcjvm.inc}

type
   X = class external 'somelib.copy' name 'X'
      class procedure test(lang : jlstring; v : integer); static;
   end;
   
begin
   X.test('Object Pascal', 123);
end.
