Script integration in Java application
<p>I have a java application(runnable jar) and VB scripts which I'm using to telnet to a remote machine and executing some cmds. So, I first execute the vbs files and then run my jar(in all everything is working fine).</p>

<p>But, now I want to integrate scripts and my java jar such that, running the jar should first trigger the script followed by Java  related task.</p>

<p>Few thing which I've come across are - </p>

<p>I cannot trigger Vbs from Java(javax.script - correct me if I'm wrong). So, possible options to rewite the script in are -
   Javascript(have no idea what my Javascript file would have so that after reading it inside java class I can write it to the Socket output stream.)</p>

<p>PHP(I tried this using Java bridge but it gives some error saying cgi needs to installed. And, I believe it also requires PHP to be installed on the host machine before executing my jar. So I'm not going any futher with this approach.)</p>

<p>Long story short, I don't want to create any dependencies - I am looking for something like where I can package any external lib with my jar(if required) and use it to execute my scripts.</p>
