@echo off
echo You Are going to creata Java Class
set /p Name=Enter your Class Name?:
echo Your class Name is %Name% & pause
echo To creat a Notepad
pause
notepad %Name%.java
set path=%PATH%;C:\Program Files\Java\jdk1.6.0_14\bin
pause
javac
echo Your java Path succsussfully set.
javac %Name%.java
pause
echo Successfully Compiled
java %Name%
pause
1)open a notpad
2)copy and past this code and save this file as
ex: test.bat
3)Double Click tha batch file.
4)put your java codes into the notepad and save it as
N.B.:- save this java file same folder that your batch file exists.