-
help
Can someone please help me? I'm not that good at coding and stuff.
But when i'm trying to run the server Launcher i receive this message:
"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 0
at com.rs.Launcher.main(Launcher.java:71)"
This is the code in eclipse
public static void main(String[] args) throws Exception {
/*if (args.length < 4) {
System.err.print(
"Args, boolean boolean boolean port");
return;
}*/
70 //Settings.OWNER_IP = String.valueOf(args[4]);
71 Settings.VPS_HOSTED = Boolean.parseBoolean(args[3]);
72 Settings.PORT_ID = Integer.valueOf(args[2]);
73 Settings.HOSTED = Boolean.parseBoolean(args[1]);
74 Settings.DEBUG = Boolean.parseBoolean(args[0]);
75 long Time = Utils.currentTimeMillis();
Someone told me to do this but i have never had to do it before so i am pretty confused can someone help me out with step by step on what i need to do i don't know what to replace his example with
"You need to pass arguments to the program that it's asked for Intellij Eclipse
example: "false false 127.0.0.1 false"
-
Code:
Settings.VPS_HOSTED = false;
Settings.PORT_ID = 43594;
Settings.HOSTED = false;
Settings.DEBUG = false;
-
Quote:
Code:
Settings.VPS_HOSTED = false;
Settings.PORT_ID = 43594;
Settings.HOSTED = false;
Settings.DEBUG = false;
hello thanks for replying, i replaced the code with what u gave me and it worked thanks!