Friday, April 22, 2011

How to run java application at system startup?

->first set the path of the compiler 
->then navigate to the program 
-> compile the program 
-> and execute it 
->these are the steps to be written in the batch file and should be saved at the startup folder 
as C:\Documents and Settings\All Users\Start Menu\Programs\Startup


e.g. set $PATH="H:\Program Files\Java\jdk1.5.0_05\bin"
D:
cd vijay
javac Start.java
java Start

->save the above code as file.bat   and save at the above location 

No comments:

Post a Comment