File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes windows BAT file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "windows BAT file" Watch "windows BAT file" New topic

windows BAT file

sanjey asok
Ranch Hand

Joined: Jul 11, 2009
Posts: 39
I have a stanalone application with a main class which used to run a windows BAT file ,the BAT file which invoke another java class(B),the class B refer so many JARs and configuration files which i configured through "build Path"

Now I want to refer the JARs and configuration files in BAT file.How I write the BAT file.
Peter Johnson

Joined: May 14, 2008
Posts: 5830

Pass the JAR files and locations of the property files using the -classpath (or -cp for short) option to the JVM. Example:

You can list multiple locations, separating each using a colon on Linux (as in the example) or a semi-colon (;) on Windows.

JBoss In Action
I agree. Here's the link:
subject: windows BAT file