Unable to start VB application from java
<p>I'm trying to launch VB application from Java, but I'm getting runtime error:</p>

<pre><code>Exception in thread "main" java.io.IOException: Cannot run program "C:\Documents and Settings\Dusk\Desktop\accounts.vbs": createProcess error=193, %1 is not  a valid Win32 application
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
     at check.main(check.java:8)
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
     at java.lang.ProcessImpl.create(NativeMethod)
     at java.lang.ProcessImpl.&lt;init&gt;&lt;ProcessImpl.java:81)
     at java.lang.ProcessImpl.start&lt;ProcessImpl.java:30)
     at java.lang.ProcessImpl.start&lt;ProcessImpl.java:452)
     ... 1 more
</code></pre>

<p>Here's the java code which I'm using:</p>

<pre><code>public class check{

 public static void main(String[] args) throws Exception
 {


        ProcessBuilder pb = new ProcessBuilder("C:\\Documents and Settings\\Dusk\\Desktop\\account.vbs");
        pb.start();
}
}
</code></pre>

<p>and Here's the vb file:</p>

<pre><code>Dim obApp
   Set obApp = CreateObject("hMailServer.Application")

   ' Authenticate. Without doing this, we won't have permission
   ' to change any server settings or add any objects to the
   ' installation.   
   Call obApp.Authenticate("Administrator", "password")

   ' Locate the domain we want to add the account to
   Dim obDomain
   Set obDomain = obApp.Domains.ItemByName("yahoo.com")

   Dim obAccount
   Set obAccount = obDomain.Accounts.Add

   ' Set the account properties
   obAccount.Address = "white@yahoo.com"
   obAccount.Password = "white"
   obAccount.Active = True
   obAccount.MaxSize = 100 ' Allow max 100 megabytes

   obAccount.Save  
</code></pre>

<p>Why I'm that exception, and how can I run my Java program?</p>
