Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo (!) Batch running...
- echo ( )
- echo (!) reddit: /u/Chikkuri
- echo (!) This tool assists in compiling java files, only if you have jdk1.8.0_121 .
- echo ( )
- echo (!) Echo will now turn on.
- pause
- @echo on
- set path=C:\Program Files\Java\jdk1.8.0_121\bin
- cd Desktop
- @echo off
- echo ( )
- echo (!) Echo is now off.
- echo ( )
- echo (!) The default directory is Desktop. This can be edited via right-click - edit.
- :new
- echo ( )
- set /p UserInputPath2= "(?) Enter java file without .java extension: "
- goto again
- :again
- echo ( )
- set /p UserInputPath= "(?) %UserInputPath2%.java - (S)elect_File, (C)ompile, (R)un, (Q)uit: "
- if /i "%UserInputPath:~,1%" EQU "S" goto new
- if /i "%UserInputPath:~,1%" EQU "C" goto compile
- if /i "%UserInputPath:~,1%" EQU "R" goto run
- if /i "%UserInputPath:~,1%" EQU "Q" goto stop
- echo (!) Invalid input.
- goto again
- :compile
- echo (!) javac %UserInputPath2%.java
- echo _________ (C) start of javac _________
- javac "%UserInputPath2%.java"
- echo _________ (C) end of javac _________
- echo (!) Done.
- goto again
- :run
- echo (!) java %UserInputPath2%
- echo _________ (R) start of java _________
- java "%UserInputPath2%"
- echo _________ (R) end of java _________
- echo (!) Done.
- goto again
- :stop
- echo (!) Batch stopped.
- @echo on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement