You mean at "Windows" startup? Since you posted this in the
servlets forum I'm assuming you want this code to run in a servlet container for some reason. The only way to do that would be to put the code in a servlet context listener of your web app, and set up the servlet container to run at startup time.
Tomcat can be installed as a Windows service, and a Windows service can be set to run at startup, so that should do the trick.