>> I have this .jar application that connects and sincronices two Sybase
>> databases. It runs fine, but I have to be logged on the server
>> (Windows 2K3 SP1) to be able to run the aplication. I had tried to rus
>> it as a Scheduled task, but it doen't work, because I can't run the
>> JVM.
Just speculating, if the application doesn't need a GUI (which I assume,
since you obviously want to start it without being logged in), then you
can try adding option "-server" to the java-command-line.
> The easiest i have found to do this is just create a .bat file that calls
> the java program you want to run. Then go into scheduled tasks and create
> a task that calls the .bat program.
Perhaps you need a combination of both, specifying the "-server"-option
inside the .bat file...
Arne Vajhøj - 19 Jan 2008 01:24 GMT
> Just speculating, if the application doesn't need a GUI (which I assume,
> since you obviously want to start it without being logged in), then you
> can try adding option "-server" to the java-command-line.
????
A GUI works fine with -server.
The name -server may be slightly misleading.
It just means "just spend all the time you want JIT
compiling this byte code, because this app is a server
app that will run for days, so investing some startup time
for better optimization will pay off well".
Arne
Andreas Leitgeb - 19 Jan 2008 09:57 GMT
>> Just speculating, if the application doesn't need a GUI (which I assume,
>> since you obviously want to start it without being logged in), then you
[quoted text clipped - 4 lines]
> [ explanation that -server only effects the choice of
> optimization strategies in the jvm, nothing else]
oops. Seems like I learnt that wrong some years ago...
Thanks for clarifying.