• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running executable Jar thru Bat file thru Windows task scheduler  RSS feed

 
Ardel Grider
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what is going on. I have created a .Bat file containing When I start this manually by double clicking it will show my java program in my system tray and shows the process "javaw.exe *32" in Windows Task Manager. When I run this thru Task Scheduler it starts the process "javaw.exe" with out the *32 and does not show the program in the system tray. Nor is the program seem to be running at all with the expetion of the new process in task manager. Do you guys know what I am doing wrong?
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set the current working directory to the correct location to run that command.
 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try adding the full path to the jar file to the command.
Or have the batch file do a CD to the correct folder.
 
Ardel Grider
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding the full path to the Jar worked. Thanks guys.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!