Purpose: Learn about making compilers
Difficulty: 0.5/10
Assumed Knowledge: Locate your computer, Copy+Paste
Server base: Umm, any?
Classes Modified: compile.bat
OBSERVE! YOU NEED JAVA DEVOLPMENT KIT FOR THIS
__________________________________________________ __________________________
This my first tut, please dont spam or flame...
Ok, first you need a server base =/
Open it up and search for Compiler.bat
Right-click it and press "Edit". (ON SWEDISH COMPUTERS IT WOULD BE) "Redigera"
A window will pop up. Plopp! It will be something like this:
Code:
@echo off
color 0a
javac *.java
pause
That's what it could be, whatever!
Now! To make it work compiling,
On computers from america and england it would be like this:
Code:
@echo off
color 0a
C:/Program Files/Java/jdk1.6.0_02/bin/javac *.java
pause
That is where your Java folder with the "JAVAC" is, now if you have JDK 1.6 Update 3 change the jdk1.6.0_02 to:
Get what i mean? *_03 is the update of your JDK
If you did it right, when you compile it will look something like this:
Code:
Note: stream.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Press any button to continue...
That is what it stands for me, if it doesn't look like that, you wrote where your jdk is wrong, so you have to locate it =(
Hope you enjoyed my tut, not so advanced
++r3p if you want // Lemon