Important things to do when you start a new class file.
When you start a new class file at the beginning you always have to add your imports and packages otherwise it will have trouble finding files associated with the server.
Code:
package java.com.bot;
//So it will search for files associated with this class in /FOLDER/java/com/bot.
import java.com.sql.*;
// It will link the class with other files in /FOLDER/java/com/sql
On some servers you have to do the above if it has loads of packages I.E folders around but these are mostly for files with java/com/bot/*.java and so on.
Next in the class file you have to declare it so when you've added the imports and packages (You don't have to in some class files) You will start developing the new file.
Under the imports and packages add.
Code:
public class CLASSFILENAMEHERE {
Or
Code:
public static class CLASSFILENAMEHERE
Depends if there is a lot of voids related to it.
Otherwise you may get a lot of errors when you come to compiling.
Next you will carry on developing but you may not be doing other games not runescape servers.
At the end of a certain part of code you ALWAYS Have to add a couple of brackets 1 or 2 otherwise you will get errors.
At the end of your class file you will have to put 3 or 4 brackets telling the compiler that the code is finished.
Then you compile and hopefully your Game/Crasher/Server etc will work when you click run.
If you get errors please ask me.
If you get a error like
Code:
Class,interface or Enum expected
You have probaly put a Capital letter where its not supposed to be or you have put too more or less brackets.
Thanks.
If you lot know this please don't post saying I've leeched or something because it took me 10 minutes to write this up.