Running programs at startup

U

Uncle Sam

I have built a RMI which I want to run at windows bootup. For this, I
wrote a batch file which executes the required commands and added the
batch file to the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

However, though I see a command prompt at startup and also the standard
output of the java program, the RMI invoked functions are not getting
executed. I also tried adding the batch file to the following key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce

but this does not work either. My computer is a part of a LAN. Is there
a problem due to this? Help will be deeply appreciated.
 
U

Uncle Sam

I also tried to add the batch file to the startup folder. I also gave a
pause of 1 minute for all the programs to load up and then started the
RMI. However, even then the java program executes correctly but the RMI
commands are not executed. On the server side, i get an Exception:
ConnectException Connection timed out.
Someone please help.
 
U

Uncle Sam

I also tried to add the batch file to the startup folder. I also gave a
pause of 1 minute for all the programs to load up and then started the
RMI. However, even then the java program executes correctly but the RMI
commands are not executed. On the server side, i get an Exception:
ConnectException Connection timed out.
Someone please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top