running batch file (Java)

Status
Not open for further replies.

baloon

Solid State Member
Messages
11
I have a project in Java language that my friend sent to me w/ a batch file and other .java files in the same folder. But I can't run that project by double-clicking on the batch file. Nor does it run when I go to the command line and type in "javac *.java" I'm sure the batch file is written properly. Somebody told me I had to install jdk. I don't know what to do. I have JBuilder 8 install on m computer, though. I just don't want to run the project throught JBuilder, I want to run it by the batch file.

Do you have any idea?
 
if you want to run the program, you need to type " java programname.java" not javac program. javac is the program that compiles .java to .class , and java runs .class files
 
zoerb said:
if you want to run the program, you need to type " java programname.java" not javac program. javac is the program that compiles .java to .class , and java runs .class files

Good catch zoerb,

Since the files are already compiled and ready to go, just follow zoerbs intructions and you should be ok.
 
Status
Not open for further replies.
Back
Top Bottom