Executing Java Jar Files From VB
Posted on 2005-04-29
I am needing to execute an external Java Jar application through command line from my VB application. I can create a .bat file to run the Jar file and this works fine when I execute it from command line or by double clicking it. However I have tried using Shell, ShellExecute and when I try these with the .bat file I receive Java Errors. Is there a way that I can either execute the .bat file or execute the Jar file directly from my VB. I would prefer executing it directly because I would need to create the .bat file from my VB Application then execute it.
my current command line goes something like this
java -jar myfile.jar [Arguments]