Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: windows scheduler fails to activate jar when on batteries

27 Aug 2017   #1
avivlevi815

windows 7 professional, 64 נןאץ
 
 
windows scheduler fails to activate jar when on batteries

hello everyone,
I'm new to this forum - hope we will have a nice time :)

I'm trying for days now to schedule a task to run a jar file every day at 3:20 pm.
the trick is - I want it to work when my laptop is in "sleep" (not "sleep mode").

The best I got was that the jar was succesfully activated on time and when the laptop was on "sleep" , but the scheduler only made it when it was on AC power and never on batteries.

here is ALL I did:

1) setting "allow wake timers" to "Enable" in "Sleep" option on my power settings.
2) created a new task with the following check-box's marked V:

general:
run whether user is logged on or not.
run with highest privileges.

conditions:
wake the computer to run this task

Settings:
allow task to run on demand
stop the task if it runs longer than 3 days
if the running task does not end when requested force it to stop

my trigger is on schedule (as i said above)

my action is :

run a proggram,

proggram/script: C:\ProgramData\Oracle\Java\javapath\java.exe

add arguments: -jar C:\Users\Owner\Desktop\Print.jar
start at: C:\Users\Owner\Desktop

any advice on what may cause it to only run on AC power will be appreciated.


My System SpecsSystem Spec
.
Reply

 windows scheduler fails to activate jar when on batteries




Thread Tools




Similar help and support threads
Thread Forum
windows scheduler fails to activate jar when on batteries
hello everyone, I'm new to this forum - hope we will have a nice time I'm trying for days now to schedule a task to run a jar file every day at 3:20 pm. the trick is - I want it to work when my laptop is in "sleep" (not "sleep mode"). The best I got was that the jar was succesfully...
General Discussion
Using Task Scheduler fails to run RoboCopy.
I have set up some RoboCopy tasks that run fine when run from the desktop link, but being forgetful I thought I would try to run them automatically using Task Scheduler. I followed the instructions in the tutorial and all appeared to be fine. However the tasks did not run so I checked them in Task...
Backup and Restore
Built new PC, Genuine Windows 7 fails to activate
I built a new PC about a month ago, and have installed Windows 7 Home Premium 64bit on it. I know it's genuine but it will not activate with my current key. I'm pretty sure I know why. Because I had the same OS on my old PC with the same activation key which obviously activated fine. Now it...
Windows Updates & Activation
Scheduler fails while trying to wake Windows from sleep/hibernation.
Hi there, I am running a Windows 7 64-bit setup, and I'm trying to get a timer to wake Windows from sleep or hibernation. I've got it to work flawlessly on my desktop, however on my laptop, a Dell D630, I can't seem to get it to work. I've created a task triggering on a specific time and...
General Discussion
Windows 7 Fails to Activate Using A Retail Version
Hi everyone, I recently reinstalled windows back onto my computer using a retail version that I have had since Windows 7 was first released. I have reinstalled Windows 7 on my computer multiple times before, and I believe that with the retail version, I can reinstall windows as many times as I...
Windows Updates & Activation


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:20.
Twitter Facebook Google+