How to run perl script in remote machine from java application?

Hi I am working in a java application. I need to execute a perl script(linux) which is in remote machine in java application from local machine(windows). I need to do this process automatically that is without manual intereption. Now I will explain the process clearly, at present to run the perl script,I just open the putty window, connect to the remote machine and execute the perl script.

Now I want to do above explained process automatically by clicking a button. So when I click a button, it should call a function which connects to the remote machine and then executes the perl script.Please help me to solve this. I need this code in java as soon as possible.

You'll need a SSH library for Java that can do public key authentication, for example Apache SSHD or SSHJ.

Please note that you usually won't get ready-to-go code on this site, unless someone had to do this recently and can share the code. We're volunteers. If you want finished code quickly, hire someone.