Or better yet please just use javascript or PHP for that type of stuff and avoid java when possible. (I will never install that security flawed piece of shit after all these zero day exploits.)
I know it's way harder said than done, but if asherkin can write spider with it, then I don't see why javascript or PHP or whatever can't invoke lysis on a server.