2014/05/23

window task schedule jar

★Q:
I have an executable jar file and am trying to create a scheduled task using windows 7 Task Scheduler.
It runs fine as a .jar file when I double click it. But when I tell task scheduler to run it, it comes up with nothing.

★A:
"C:\Program Files\Java\jre7\bin\javaw.exe"
 -jar C:\Users\admin\Desktop\TestTask.jar

==>直接jar指定など。。javaで実行などうまくいかなかった。。。