@echo off
pushd %CD%
cls
set jpath=C:\Program Files\Java\jdk1.6.0_07\bin
cd /d %jpath%
if EXIST "javac.exe" goto FOUND
if NOT EXIST "javac.exe" goto NOTFOUND
:NOTFOUND
cls
echo JAVAC.EXE FILE NOT FOUND
pause
goto END
:FOUND
echo JAVAC.EXE FILE FOUND
echo.
pause
popd
:END
I have written a .bat code of setting path for JAVA complier but it closes automatically after execution. How to retain the cmd instance for further working.
I'm fed up b'coz i have to do everything manually again even executing the .bat file.
Plz help me out.
Thanx a lot in advance.
pushd %CD%
cls
set jpath=C:\Program Files\Java\jdk1.6.0_07\bin
cd /d %jpath%
if EXIST "javac.exe" goto FOUND
if NOT EXIST "javac.exe" goto NOTFOUND
:NOTFOUND
cls
echo JAVAC.EXE FILE NOT FOUND
pause
goto END
:FOUND
echo JAVAC.EXE FILE FOUND
echo.
pause
popd
:END
I have written a .bat code of setting path for JAVA complier but it closes automatically after execution. How to retain the cmd instance for further working.
I'm fed up b'coz i have to do everything manually again even executing the .bat file.
Plz help me out.
Thanx a lot in advance.