Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

windows BAT file

 
sanjey asok
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic