| Author |
How to create a batch file for a java program?
|
Ong CherYee
Greenhorn
Joined: Jan 17, 2008
Posts: 10
|
|
I have a java project in JCreator and the project is organised into packages. I have also configured JCreator to provide 2 arguments to the main method when the project is executed. I would want to create a batch file (.bat) for this project where the batch file can automatically use the arguments set in JCreator when the program runs. How do I go about creating the batch file?
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
|
A Windows batch file is simply a text file with commands. You can create it with any text editor (for example, Notepad if you don't have anything better). Create a new file with the extension .bat and put commands in it that you want to execute when the batch file is run.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
 |
|
|
subject: How to create a batch file for a java program?
|
|
|