Windows 10 pro system, jar file created with B4J 10.00, jdk 19.0.2
To start program, i use a bat file with a row like this:
C:\java\jdk-19.0.2\bin\javaw.exe -jar D:\ticket_logic_021\Objects\support.jar
When I start the bat file with a double click everything works fine, the program starts correctly and is accessible from other workstations
Now wanting to run the program even if the PC is restarted and the operator has not logged in, I thought of using Windows scheduled tasks
And then:
- I add a new scheduled task
- I indicate the bat file to start containing the line indicated above
- I make sure that in the General screen the flag 'run regardless of user connection' is active
- I make sure that the flag 'run with highest privileges' is active
I restart the operating system, but even after the restart the program cannot be used from other workstations, in the sense that it does not respond (it is a socket server)
The question is: having verified that the bat file correctly runs the program, how come if inserted in the scheduled tasks the same effect is not obtained?
To start program, i use a bat file with a row like this:
C:\java\jdk-19.0.2\bin\javaw.exe -jar D:\ticket_logic_021\Objects\support.jar
When I start the bat file with a double click everything works fine, the program starts correctly and is accessible from other workstations
Now wanting to run the program even if the PC is restarted and the operator has not logged in, I thought of using Windows scheduled tasks
And then:
- I add a new scheduled task
- I indicate the bat file to start containing the line indicated above
- I make sure that in the General screen the flag 'run regardless of user connection' is active
- I make sure that the flag 'run with highest privileges' is active
I restart the operating system, but even after the restart the program cannot be used from other workstations, in the sense that it does not respond (it is a socket server)
The question is: having verified that the bat file correctly runs the program, how come if inserted in the scheduled tasks the same effect is not obtained?