ULTIMATE GUIDE

LoG iN

ULTIMATE GUIDE


    Compile Scripts Code

    Share

    Turk4life321
    Admin

    Posts : 41
    Join date : 2009-08-09
    Location : In Saims Room *cough*

    Compile Scripts Code

    Post  Turk4life321 on Fri Jan 01, 2010 5:03 am

    @ECHO OFF

    TITLE RSBot Scripts

    SET cc=javac
    SET cflags=
    SET scripts=Scripts
    SET scriptspre=%scripts%\Precompiled
    SET jarpathfile=Settings\path.txt

    IF NOT EXIST "%jarpathfile%" (
    ECHO Path file does not exist. Please run RSBot and try again.
    PAUSE
    EXIT
    )

    FOR /F "delims=" %%G IN (%jarpathfile%) DO SET jarpath=%%G

    CALL FindJDK.bat
    ECHO Compiling scripts
    ECHO. > "%scripts%\.class"
    DEL /F /Q "%scripts%\*.class" > NUL
    "%cc%" %cflags% -cp "%jarpath%" %scripts%\*.java

    PAUSE

      Current date/time is Fri Aug 17, 2018 10:27 pm