I am coding in Java the skeletal structure of a program that uses the p2p system. A centralized server communicates with the clients and when clients want to transfer some file or sth, the server initializes the p2p between the clients.
The communication protocol I am working on is pretty simple for start. The main concern for me is to start the server and the clients on boot. I can achieve this using init scripts at rc* in *IX. But about windows, I am going to use the "reg" system command to add my program at the registry. But looks like its hell of a registry job to do and am not so good at win32 registry hack.
My query, "Is there a generic way I can make my application start at boot time using any java classes?"
And I want to know detail about the platform my application is currently running on. How do I fetch that?
Any suggestion is welcome.