seems like we are using java.exe instead of javaw.exe which should not show the dos box under windows.