Minecraft Client: StringIndexOutOfBoundsException
5 replies [Last post]
MrSparks
WoM Member
Members
WoM Member: 34140
WoM Coins: 0

<code>Autodetecting java
Testing default folder
Checking C:\Program Files\Java\jre6 folder
Found java in C:\Program Files\Java\jre6 folder
Checking C:\Program Files\Java\jre1.6.0_02 folder
Found java in C:\Program Files\Java\jre1.6.0_02 folder
Starting java from "C:\Program Files\Java\jre1.6.0_02\bin\java.exe"
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: -15976
        at java.lang.String.substring(Unknown Source)
        at ServerDialog.parseServers(ServerDialog.java:399)
        at ServerDialog.<init>(ServerDialog.java:74)
        at Main.main(Main.java:93)</code>

Lordmax155
WoM Member
Members
WoM Member: 26013
WoM Coins: 0
I think you don't have the

I think you don't have the Latest Version of Java

bugme143
WoM Member
Members
WoM Member: 88904
WoM Coins: 5
nope

hate to revive a dead thread, but I just updated Java. Nada.
just goes to the "connecting" screen and freezes.

anyone here familiar with things like this / java can toss us a line to help?

Damer_Flinn
WoM Member
Members
WoM Member: 10520
WoM Coins: 1
same problem, java updated last week

Autodetecting java
Testing x86 folder
Checking c:\Program Files (x86)\java\jre6 folder
Found java in c:\Program Files (x86)\java\jre6 folder
Starting java from "c:\Program Files (x86)\java\jre6\bin\java.exe"
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1660
        at java.lang.String.substring(Unknown Source)
        at ServerDialog.parseServers(ServerDialog.java:401)
        at ServerDialog.<init>(ServerDialog.java:74)
        at Main.main(Main.java:93)

bugme143
WoM Member
Members
WoM Member: 88904
WoM Coins: 5
...

can anyone help? the minecraft wiki is very unhelpful....

Damer_Flinn
WoM Member
Members
WoM Member: 10520
WoM Coins: 1
Might be a solution

But I can't really test it until minecraft.net starts working properly. The problem is that it's not auto-detecting the location of java, the solution is to tell it where to look. Edit the run.bat where it says:

rem eg:  set JAVA6="C:\MyPath\bin\java.exe"

Replace the location inside the "" with the correct path. After doing this the java window opens just like it used to. (although for now it's doing what it always does when minecraft.net is having problems)