Running On Start Up

How can I make it so that my program can run when the computer starts up? is there some way to do it through Java or would I have to work with the registry (isthat possible with Java)?

Thank you

[215 byte] By [java4life87a] at [2007-11-27 11:19:00]
# 1

Create a batch file with this inside

cmd /c java JavaApplication

qUesT_foR_knOwLeDgea at 2007-7-29 14:34:15 > top of Java-index,Java Essentials,Java Programming...
# 2

And put the batch file inside the startup folder

qUesT_foR_knOwLeDgea at 2007-7-29 14:34:15 > top of Java-index,Java Essentials,Java Programming...
# 3

Only class I can think off which interacts actively with the machine is java.io.Runtime and there is indeed a mtd for shutdown but no method to run a method after restart so making an executible and running it by setting up in win reg will only be the option ...

Let the thread continue may be someone has a solution to this..

Rohan.Desaia at 2007-7-29 14:34:15 > top of Java-index,Java Essentials,Java Programming...
# 4

will do...

java4life87a at 2007-7-29 14:34:15 > top of Java-index,Java Essentials,Java Programming...