Purpose: Teach About the Common Errors
compiler errors
This is the most common. to fix open you compiler and paste this inCode:'javac' is not recognized as an internal or external command, operable program or batch file
Replace the JAVAVERIONHERE with you jdk version and your done ;)Code:@echo off
title compile
echo compiling please wait
"c: program files\java\JAVAVERSIONHERE\bin\javac.exe" *java
pause
This one means you didn't save the CLASSHERE file as javaCode:Class names, 'CLASSHERE, are only accepted if annotation processing is explicitly requested
Syntax Errors
Simple place a ";" after )Code:System.out.println("Test")
^
; expected
simpily add a }Code:'}' expected
}
Again simpily add a } ABOVE itCode:illegal start of expression
public void error {
In private server's if you recieve this message you will most likely get 100 errors.Code:'class' or 'interface' expected
}
To fix add a } where ever you are missing one.
if you get this it means you are missing a "Code:unclosed string literal
System.out.print(your message here? ");
^
Remember that private servers are case sensitiv, this means that Example != example.Code:cannot find symbol
symbol : class Example
location: class Test
Example console = new Example();
The fix either change case
Another error that might recieve this is if you haven't declared some thing
This means that you don't have the Prayer Boolean.Code:cannot find symbol
Prayer = false
OR you could get this
Spelling mistakes cause this, it should beCode:cannot find symbol
public bool prayer = false
Code:public boolean prayer = false
This means you are trying to run the server with out compiling it yet. To fix simply compileCode:Exception in thread "main" java.lang.NoClassDefFoundError: test
Occurs when you are missing a true or false. Simpily add a true or false above itCode:client.java:00002 missing return statement
}
remove the IO simple :dCode:IOException e is never thrown around in body of try statement
If you have anymore errors please post them and i will add to list
