This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

windows BAT file  RSS feed

 
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: 5856
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
Boost this thread!