bordemstirs
Member
Any Windows (preferably 7) users out there with extensive Task Scheduler experience?
I'm trying to get away from wrapping my jar file to an exe (among other things, this allows me to execute it in 64-bit Java, but jsmooth only gives me 32-bit)
Now, when I go through the loops in the command line to test it, the following works as expected:
"C:\Program Files\Java\jre6\bin\java.exe" -jar C:\Users\goddess\Documents\Bots\OB\KoLmafia.jar
However, when the same parameters are loaded via the task scheduler, I get a brief error, then it quits.
It starts:
Exception in thread "main" java.lang.UnsatisfiedLinkError: [path to folder]/images/TrayIcon12.dll: Can't find dependent libraries
And then proceeds to list where it was at when this occurs.
(sorry, my attempts to pipe the error to output failed) so, here's the screencap I got before it went away.
Any ideas how to fix this or otherwise allow task scheduler to invoke a jar?
EDIT: To clarify, this only seems to occur if I use the optional "Start In:" field. Which I would like so that my mafia files aren't being held up in the Java program file.
And I seem to be having Java issues all around, I'll post more when I fix that.
I'm trying to get away from wrapping my jar file to an exe (among other things, this allows me to execute it in 64-bit Java, but jsmooth only gives me 32-bit)
Now, when I go through the loops in the command line to test it, the following works as expected:
"C:\Program Files\Java\jre6\bin\java.exe" -jar C:\Users\goddess\Documents\Bots\OB\KoLmafia.jar
However, when the same parameters are loaded via the task scheduler, I get a brief error, then it quits.
It starts:
Exception in thread "main" java.lang.UnsatisfiedLinkError: [path to folder]/images/TrayIcon12.dll: Can't find dependent libraries
And then proceeds to list where it was at when this occurs.
(sorry, my attempts to pipe the error to output failed) so, here's the screencap I got before it went away.
Any ideas how to fix this or otherwise allow task scheduler to invoke a jar?
EDIT: To clarify, this only seems to occur if I use the optional "Start In:" field. Which I would like so that my mafia files aren't being held up in the Java program file.
And I seem to be having Java issues all around, I'll post more when I fix that.
Attachments
Last edited: