I have created a batch file "run.bat":
set CLASSPATH=%CLASSPATH%.;.\Jars\app.jar;.\Jars\a.jar;.\Jars\b.jar;.\Jars\c.jar;.\Jars\d.jar;
java mypackage.mysubpackage.Start
pause
I have kept all the class files related to my application in "app.jar" and
Start
is the class from where the application begins execution. I have this "run.bat" file and all the jars that my "app.jar" wants to refer in the same directory.
I kept all these jars in the "Jars" folder and referring to it in my "run.bat" file as shown above. However, to refer to each and every jar file by my "run.bat" I need to specify the path as ".\Jars\jarname.jar". When I am using ".\Jars\*.jar" the jars are not referred by "run.bat".
Can anyone provide an alternative for it?