lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


When trying to run the following Lua code

  local JavaClass = javaBindClass("Test");

with =

  public class Test {
    public static Test LuaObject;

    public static void setLuaObject (Test Candidate) {
      LuaObject = Candidate;

I get the (Lua) error message

  error: Test.setLuaObject not found.
  stack traceback:
    1: method 'setLuaObject' [C]
    2: main of file 'test.lua' at line 2

Any ideas why?

Surprisingly, the method "setLuaObject" is found if
I define it without any arguments...

Thanks in advance for your help!

Andreas Rozek         Phone:  ++49 (7031) 222305
Bunsenstraße 82       Fax:    -
D-71032 Böblingen     EMail:  A.Rozek@GMX.De
Germany               URL: