Advertisement
manuwalk

Compiler Code

Dec 19th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. @echo off
  2. title Compiler
  3. if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
  4. :compile
  5. for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
  6. if defined p (%p% -cp . *.java)
  7. if defined p (goto end)
  8. :error
  9. echo You do not have Java installed. Please download it at the site that is about to load.
  10. "%programfiles%\Internet Explorer\iexplore.exe" http://java.sun.com/javase/downloads/index.jsp
  11. :end
  12. echo Finished!
  13. pause
  14. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement