• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

run java class at startup!

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic