• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic