Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- : start
- if %1.==. goto complainAndExit
- if exist %1.class del %1.class
- : compileAndRun
- cls
- javac %1.java
- if not exist %1.class goto end
- java %1 %2 %3 %4 %5 %6 %7 %8 %9
- goto end
- : complainAndExit
- cls
- echo You need to give me the name of a Java file to compile and run.
- echo Try again ...
- echo Here is a list of available Java files:
- echo.
- dir /D *.java
- goto end
- : end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement