SageScape
Would you like to react to this message? Create an account in a few clicks or log in to continue.


...
 
HomePortalLatest imagesSearchRegisterLog in

 

 Compiler

Go down 
AuthorMessage
sageofmali

sageofmali


Posts : 67
Join date : 2010-07-01

Compiler Empty
PostSubject: Compiler   Compiler Icon_minitimeFri Aug 06, 2010 3:29 pm

@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" http://java.sun.com/javase/downloads/index.jsp
:end
echo Finished!
pause
exit

Put that in a notepad and save as compiler.bat.
Back to top Go down
 
Compiler
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
SageScape :: General Discussion-
Jump to: