You set the classpath either in the console window you're using to run your program, or thru an environment variable. If you use an environment variable, autoexec.bat is one of the places you can set it (though not a common one for windows). If you use Windows 2000 (and I think 98, but i'm not...