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
精彩评论