How to set classpath in manifest file in executable jar file
807589Dec 8 2008 — edited Dec 9 2008I have developed java application in eclipse and for connecting to sql sever database, I am using jtds type-4 driver. I have dropped the jtds.jar file under the project and added into the class path. It works fine in the eclipse work space. Now I have to run this program in a production server and this program should run every day at a specific time. I have have exported the project as executable jar file and added to windows scheduler to run. But it didnot work. So I made a .bat file and added the sameto the windows scheduler. This time it works but the program doesnot find the jtds.jar file. In the manifest file, no classpath is set. How do I include the jtds.jar in the manifest file to run the program. Is there any better way to run the java program by adding a scheduled task in windows ???
Please help.....
Thanks in advance.