I wrote a program in java to call a batch file containing ant run statement. If I run the java pgm in command prompt I get the result. The same thing if I do using an exe file of the java pgm (exe got by converting java class file to exe using java2exe) it is not running. I think it may be due to classpath. But I'm unable to solve it. Can any one of U give me an idea to solve this.