Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Creating Batch file

  Asked By: Steven    Date: Jul 05    Category: Java    Views: 7472

Does anybody know how to create batch file to execute
java class?



1 Answer Found

Answer #1    Answered By: Clarence Nichols     Answered On: Jul 05

Perhaps you can do something as simple as:

java -cp . com.yourcompany.ClassName

It really comes down to what you want to do. Do you need to build up a class
path? Do you need to turn of echoing?
You may want to find a tutorial on writing batch  files to see what you can do.

I strongly suggest looking into the executable JAR mechanism as the way for
launching your applications. It is much
more elegant. You can find out more about executable JARs in the JavaDocs.

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