• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Release] The Ultimate Compiler

Newbie Spellweaver
Joined
May 17, 2008
Messages
7
Reaction score
0
Hi, I was looking around and there are not many good compilers, so I decided to make a good one.

First open Notepad or Wordpad

Then copy and paste this into the text part.

Code:
@echo off
COLOR 09
cls
:menu
title Master Of Pk's Ultimate Compiler.
echo Oo      oO                                        .oOOOo.  .oOo 
echo O O    o o                                       .O     o. O    
echo o  o  O  O                O                      O       o o    
echo O   Oo   O               oOo                     o       O OoO  
echo O        o .oOoO' .oOo    o   .oOo. `OoOo.       O       o o    
echo o        O O   o  `Ooo.   O   OooO'  o           o       O O    
echo o        O o   O      O   o   O      O           `o     O' o    
echo O        o `OoO'o `OoO'   `oO `OoO'  o            `OoooO'  O'  
echo.
echo.
echo                 OooOOo.  o     
echo                 O     `O O     
echo                 o      O o     
echo                 O     .o o     
echo                 oOooOO'  O  o  
echo                 o        OoO   
echo                 O        o  O  
echo                 o'       O   o 
echo.
echo. 
echo O       o  o                                      
echo o       O O        o                              
echo O       o o    O                        O         
echo o       o O   oOo                      oOo        
echo o       O o    o   O  `oOOoOO. .oOoO'   o   .oOo. 
echo O       O O    O   o   O  o  o O   o    O   OooO' 
echo `o     Oo o    o   O   o  O  O o   O    o   O     
echo `OoooO'O Oo   `oO o'  O  o  o `OoO'o   `oO `OoO'
echo.
echo.
echo  .oOOOo.                           o              
echo .O     o                       o  O               
echo o                                 o               
echo o                                 O               
echo o         .oOo. `oOOoOO. .oOo. O  o  .oOo. `OoOo. 
echo O         O   o  O  o  o O   o o  O  OooO'  o     
echo `o     .o o   O  o  O  O o   O O  o  O      O     
echo  `OoooO'  `OoO'  O  o  o oOoO' o' Oo `OoO'  o     
echo                          O                        
echo                          o' 

echo Thank You for choosing Master of Pk's Ultimate Compiler.
echo.
echo Please choose one of the options below and type it and hit the enter key.
echo.
echo Please note: You must have Java Development Kit 6 (JDK 6) before you can
echo compiler your server.
echo.
echo.
echo.
echo c - This will compiler your server.
echo r - This will run your server.
echo e - This will exit the Ultimate Compiler.
echo.
echo.
set /p compile=Option: 
echo.
echo.
if %compile%==c goto compile
if %compile%==C goto compile
if %compile%==r goto run
if %compile%==R goto run
if %compile%==e goto end
if %compile%==E goto end
if %compile#==* goto error
goto error
:compile
cls
title Compiler
if defined javac (goto compile2) else (goto checkjavac)
:compile2
if exist *.java (goto compile3) else (goto compileerror)
:compile3
%javac% -cp . *.java
pause
cls
goto menu
:compileerror
cls
echo Oops, Looks like you do not have the Java Files.
echo You need to have Java files for this compiler to compile.
echo.
echo.
pause
cls
goto menu
:run
cls
title Runserver
if exist .\server.class (goto run2) else (goto servererror)
:run2
set java=java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar
cls
goto run3
:run3
%java% server
pause
cls
goto menu
:servererror
cls
title Error
echo Oops looks like you do not have a Server.class.
echo. 
echo Make sure that you have used the compiler with your server BEFORE you try
echo running it.
echo.
echo.
pause
cls
goto menu
:error
cls
title Error
echo Oops, looks like you have typed something that this complier
echo cannot reconigse, pleae try again making sure there are
echo no spelling mistakes or wrong characters.
echo.
echo.
pause
cls
goto menu
:end
cls
exit
:checkjavac
if exist "%programfiles%\Java\jdk1.6.0_06\bin\javac.exe" (goto setjavac) else (goto checkjavac2)
:checkjavac2
if exist "%programfiles%\Java\jdk1.6.0_07\bin\javac.exe" (goto setjavac2) else (goto checkjavac3)
:checkjavac3
if exist "%programfiles%\Java\jdk1.6.0_08\bin\javac.exe" (goto setjavac3) else (goto checkjavac4)
:checkjavac4
if exist "%programfiles%\Java\jdk1.6.0_09\bin\javac.exe" (goto setjavac4) else (goto checkjavac5)
:checkjavac5
if exist "%programfiles%\Java\jdk1.6.0_10\bin\javac.exe" (goto setjavac5) else (goto checkjavac6)
:checkjavac6
if exist "%programfiles%\Java\jdk1.6.0\bin\javac.exe" (goto setjavac6) else (goto checkjavac7)
:checkjavac7
if exist "%programfiles%\Java\jdk1.6.0\bin\javac.exe" (goto setjavac7) else (goto checkjavac8)
:checkjavac8
if exist "%programfiles%\Java\jdk1.6.0_01\bin\javac.exe" (goto setjavac8) else (goto checkjavac9)
:checkjavac9
if exist "%programfiles%\Java\jdk1.6.0_02\bin\javac.exe" (goto setjavac9) else (goto checkjavac10)
:checkjavac10
if exist "%programfiles%\Java\jdk1.6.0_03\bin\javac.exe" (goto setjavac10) else (goto checkjavac11)
:checkjavac11
if exist "%programfiles%\Java\jdk1.6.0_04\bin\javac.exe" (goto setjavac11) else (goto checkjavac12)
:checkjavac12
if exist "%programfiles%\Java\jdk1.6.0_05\bin\javac.exe" (goto setjavac12) else (goto javacerror)
:setjavac
set javac="%programfiles%\Java\jdk1.6.0_06\bin\javac.exe"
goto compile2
:setjavac2
set javac="%programfiles%\Java\jdk1.6.0_07\bin\javac.exe"
goto compile2
:setjavac3
set javac="%programfiles%\Java\jdk1.6.0_08\bin\javac.exe"
goto compile2
:setjavac4
set javac="%programfiles%\Java\jdk1.6.0_09\bin\javac.exe"
goto compile2
:setjavac5
set javac="%programfiles%\Java\jdk1.6.0_10\bin\javac.exe"
goto compile2
:setjavac6
set javac="%programfiles%\Java\jdk1.6.0\bin\javac.exe"
goto compile2
:setjavac7
set javac="%programfiles%\Java\jdk1.6.0\bin\javac.exe"
goto compile2
:setjavac8
set javac="%programfiles%\Java\jdk1.6.0_01\bin\javac.exe"
goto compile2
:setjavac9
set javac="%programfiles%\Java\jdk1.6.0_02\bin\javac.exe"
goto compile2
:setjavac10
set javac="%programfiles%\Java\jdk1.6.0_03\bin\javac.exe"
goto compile2
:setjavac11
set javac="%programfiles%\Java\jdk1.6.0_04\bin\javac.exe"
goto compile2
:setjavac12
set javac="%programfiles%\Java\jdk1.6.0_05\bin\javac.exe"
goto compile2
:javacerror
cls
title Error
echo Oh dear, you do not have Java Development Kit 6 (JDK 6) 
echo please go to http://java.sun.com/j2se/1.4.2/download.html
echo to download Java Development Kit 6 (JDK 6) or go to
echo http://www.moparscape.org/smf/index.php and search JDK
echo Thank you for using Master of Pk's Ultimate Compiler.
pause
cls
goto menu

Please note, Master Of Pk is my forum name at http://www.moparscape.org/smf

So do not think I have leeched this.

-Hope this works for you..

-PkeRscape
 
Newbie Spellweaver
Joined
Apr 20, 2008
Messages
84
Reaction score
0
Re: [REL] The Ultimate Compiler [REL]

Thank you. Really good Compiler. =)
 
Newbie Spellweaver
Joined
May 16, 2008
Messages
8
Reaction score
0
Re: [REL] The Ultimate Compiler [REL]

wat am i suposed to do with this code?
 
Newbie Spellweaver
Joined
May 31, 2008
Messages
7
Reaction score
0
Re: [REL] The Ultimate Compiler [REL]

u suppose to paste it into notepad/word pad and save it as compiler.bat
 
Newbie Spellweaver
Joined
Feb 18, 2007
Messages
99
Reaction score
0
Re: [REL] The Ultimate Compiler [REL]

Would I save it as compiler.bat
?

Edit: Doesnt matter got it workin xD Thanks a lot!
 
Newbie Spellweaver
Joined
May 17, 2008
Messages
7
Reaction score
0
Glad you like it..

Working on ones for 508 servers :)

-PkeRscape.
 
Junior Spellweaver
Joined
Nov 25, 2008
Messages
180
Reaction score
2
Lol, this is such an idiotic release (Y)
There is no such thing as a "good compiler" it is just down to your JDK version. Seriosly, stop Ducking pissing around with compilers and getting them to have lots of text.
You fail with coding(Y)
 
Initiate Mage
Joined
Apr 21, 2007
Messages
2
Reaction score
0
I agree with Byte, releases of compilers is pointless unless it compiles faster and takes less time. For example, with the latest 508 Sources some compilers take around 10 secounds to compile but compiles made from scratch can perform a compile in under three secounds.

I should know, I made my own.
 
Junior Spellweaver
Joined
Dec 2, 2007
Messages
180
Reaction score
1
I get the message
"Note: stream.java uses or overrides a depracated API.
Note: Recompile with -Xlint:deprecation for deatails."

Can some one help me, please?
 
Last edited:
Back
Top