Thanks for your help, the java.lang.NoClassDefFoundError: sun/tools/javac/Main error was because of not enough environment space and jdk/tools.jar was not in the class path Your are all great but 100 mails a day is too much for me. Thanks Riccardo Cohen