Can't restore from mysql dump file
The problem is that you forgot to put double quotes around the -e parameter

String cmd =  mysql + " --user=" + username + " --password=" + password +  " -e\"" + "source " + restoreFile + "\""; 


An alternative would be to redirect the file into the  mysql client

String cmd =  mysql + " --user=" + username + " --password=" + password +  " &lt; " + restoreFile; 


I also just noticed that you forgot to set the target database

String cmd =  mysql + " --user=" + username + " --password=" + password +  " -D" + mydb + "-e\"" + "source " + restoreFile + "\""; 

String cmd =  mysql + " --user=" + username + " --password=" + password +  " -D" + mydb + "  &lt; " + restoreFile; 


Give it a Try !!!