Advertisement
NoSalt

jloader.bat

Apr 13th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. : start
  3.  
  4. if %1.==. goto complainAndExit
  5.  
  6. if exist %1.class del %1.class
  7.  
  8. : compileAndRun
  9. cls
  10. javac %1.java
  11.  
  12. if not exist %1.class goto end
  13.  
  14. java %1 %2 %3 %4 %5 %6 %7 %8 %9
  15. goto end
  16.  
  17. : complainAndExit
  18. cls
  19. echo You need to give me the name of a Java file to compile and run.
  20. echo Try again ...
  21. echo Here is a list of available Java files:
  22. echo.
  23. dir /D *.java
  24. goto end
  25.  
  26. : end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement