After you create the .bat file, make sure it's on the PATH for your OS to be able to find it. If you have a bunch of batch files that you want to be able to execute without having to change directory, create a folder for them and put the path to that folder in the PATH variable.
Joined: Dec 12, 2007
Mirko, Does java -cp ./lib/*.jar MainClass.class will help including all my lib files??
Joined: Aug 10, 2005
I don't know that wildcards work. Try it and let us know.