ULTIMATE GUIDE

LoG iN

Join the forum, it's quick and easy

ULTIMATE GUIDE

LoG iN

ULTIMATE GUIDE

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

ULTIMATE GUIDE


    Compile Scripts Code

    avatar
    Turk4life321
    Admin


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

    Compile Scripts Code Empty Compile Scripts Code

    Post  Turk4life321 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 Mar 29, 2024 1:23 am