Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

run java class at startup!  RSS feed

 
sudhir verma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
how can i run a java class at the startup in win 2000?..i.e. it runs automatically when windows starts!
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sudhir,
Either create a batch file that starts the java app in the Startup folder or hack the registry.
If you want to use the latter approach here are the steps:
1. Select Start->Run
2. Enter regedit in the text box and press OK.
3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.
4. Select Edit->New->String Value or Right Click in the right pane and select New->String Value.
5. Change the new value name to something meaningful like "MyJavaApp".
6. Select Edit->Modify or Right Click in the right pane and select Modify.
7. Enter the command to start your Java app in the text box. It should be something like "javaw -jar MyJavaApp.jar".
8. Click OK and exit regedit.
9. Reboot and the app should be running.
Note that for steps 5 and 6, the new value should be highlighted.
Michael Morris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!