开发者

creating .bat file for java

开发者 https://www.devze.com 2023-01-11 03:39 出处:网络
I need to create a .bat file to run java program. I have a DatabaseConnect.class file under \"C:\\Program Files\\Java\" directory.

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 Fi开发者_Go百科les\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
0

精彩评论

暂无评论...
验证码 换一张
取 消