Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

bat file

  Asked By: Lamberta    Date: Jan 16    Category: Java    Views: 1366

How can i make a bat file, I'm a new in java



2 Answers Found

Answer #1    Answered By: Benny Torres     Answered On: Jan 16

Assuming you use Windows :)

Open up notepad, write what you need to do in the bat  file, save it as a
.bat file


Open -> Notepade.exe
write -> javac CompileJavaFile.java
write -> java  RunJavaFile
SaveAs -> RunCompile.bat (in the directory your java files are in)

A .bat file  should have appeared in that directory :) Double click it
for fun and adventure.

Answer #2    Answered By: Ulfah Hashmi     Answered On: Jan 16

First step is > open notepad write command for which you are making file.
Second step> after writing complete command just save with the extension of

Didn't find what you were looking for? Find more on bat file Or get search suggestion and latest updates.