views:

165

answers:

0

I am working on scheduling the tasks using Quartz API. I tried scheduling notepad.exe and in the logs, I see the following line -
org.quartz.jobs.NativeJob runNativeCommand About to runcmd.exe /C c:/WINDOWS/notepad.exe ...

But the notepad is not coming up. Same is the issue with any exe or batch file. I also see the notepad.exe as a running process in Task Manager.

Code:-

JobDataMap map = new JobDataMap();
map.put(NativeJob.PROP_COMMAND, "c:/WINDOWS/notepad.exe");