开发者

creating .bat file for java

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜