Syntax errors are usually before where it indicates, that's just when it stops making sense to the compiler.
So when ever you get a syntax error, try to look above the error.
Oddly enough, I can't find the error. Try getting rid of some of those comments, especially the obvious ones like:
//creates a package called setName
//when the client enters the server