start/compile java from .bat batch file
I created the following .bat file
The divide.java file is located into the same directory as the .bat file.
But it doesn't compile nor it execute the java file, I just get the cmd open, the working directory set, but I still have to type manualy:
javac divide.java and java divide and then it works
The point is to easy and fast compile and run java code from command line, not using IDE, for an educational purpose
So, what is the problem here?