I need to create a .bat file to run java program. I have a DatabaseConnect.class file under "C:\\Program Files\\Java" directory. And I have a jar files for database connection in "C:\\Program Files\\JarColl" directory.
I tried but no success . ANy help is appreciated.
Most likely Path problem.
Try this?
java -classpath "C:\Program Files\JarColl\\*";C:\Program Files\Java DatabaseConnect
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.