- Joined
- Aug 31, 2008
- Messages
- 38
- Reaction score
- 0
Here is the working compiler that I use!
@echo off
if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
:compile
for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
if defined p (%p% -cp . *.java)
if defined p (goto end)
:error
echo You do not have Java installed. Please download it at the site that is about to load.
"%programfiles%\Internet Explorer\iexplore.exe"To view the content, you need to sign in or register
:end
echo Finished!
pause
exit

