How can I get Java.proxy() to work? I thought the java() call on top should be enough to get the Java object available, but it is nil.
java()
local TimerTask = require "java:java.util.TimerTask"
local runTask = {}
runTask.run = function()
-- do nothing
end
Java.proxy(TimerTask, runTask)
ERROR MESSAGE: attempt to index 'Java' (a nil value)