Loading java programme at boot time

hiiiii everybody, can anyone tell me how to load java programme automatically at the time of windows or linux startup i.e. when machine boot. please let me know at gaurav170584@gmail.com. thanks in advance.
[227 byte] By [gaurav170584a] at [2007-11-26 23:58:41]
# 1

[url=http://onesearch.sun.com/search/onesearch/index.jsp?qt=windows+startup&subCat=&site=dev&dftab=&chooseCat=javaall&col=developer-forums]Search - windows startup[/url]

[url=http://onesearch.sun.com/search/onesearch/index.jsp?col=developer-forums&qt=linux+startup&rt=true&site=dev&cs=false&chooseCat=javaall&st=1]Search - linux startup[/url]

YoGeea at 2007-7-11 15:46:49 > top of Java-index,Java Essentials,Java Programming...
# 2
can u please tell me the steps for making the programme run at the time of windows startup
gaurav170584a at 2007-7-11 15:46:49 > top of Java-index,Java Essentials,Java Programming...
# 3
In windows registry add this codeHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Runnow in right pane create a new string entry and then double click on that and then write path of your file to execute.You should make a bat file for executing a java
student@sunDNa at 2007-7-11 15:46:49 > top of Java-index,Java Essentials,Java Programming...