I want to run a a java program on a remote computer 24 x 7.
i have included everything in try catch blocks so that it does not end because of Exceptions.
But program is currently running in my eclipse IDE.
How should i proceed .
Should i make a SWING GUI and convert into exe that keeps running.
Is there any way in which the program runs every time computer is running .(may be as a service)?
JavaServiceWrapper is a good utility to wrap a a Java program as a service.
Note in particular its restart capability. You can configure this to restart the service upon exit, or if given messages appear in the logs/output (e.g. OutOfMemoryErrors etc. – this is particularly useful since the app becomes unresponsive but hasn’t exited)