I am running Windows 7 Home Premium (64 bit), and using the lastest vanilla version 1.2.5 of the Minecraft client.
If I have the lastest Version 6 of the Java JRE installed (Version 6, Update 32), everything works fine. The client starts up, displays the news page, connects to minecraft.net, and shows me my list of servers.
If I have the latest Version 7 of the Java JRE installed (Version 7, Update 4) almost nothing works. The client starts, but that is it:
The news page is not displayed. What I see looks like the html code for actually display/formatting the page (Something like: (<html><body>
<center>Failed to update news java.net.ConnectException: Connection timed out: connect</center></body></html>").
Connecting to minecraft.net fails. The client then asks if I want to play offline.
If I say 'yes', I get a server page that shows all my servers as offline and I can not join any of them.
Normally I run with the 64-bit version of JRE 6.32, as I have been led to believe that gives the best performance, but the 32-bit version also works.
Neither the 32 or 64 bit version of JRE 7.4 work (same results in each case).
Currently, I have both 6.32 and 7.4 installed (64 bit versions):
If I start up minecraft.exe, it fails as described above. This is because the system picks the 7.4 version of the JRE if you just ask for 'java' or give the system a .jar file.
If I start up the 6.32 java.exe, and explicitly tell it to use the 'jar file' minecraft.exe, everything works perfectly.
Apparently, there is something in the JRE 7.4 that completely locks minecraft.exe from the internet.
This is likely to be the issue that java7 has where it decides to use IPv6 even when it shouldn't.
try something like
java -Djava.net.preferIPv4Stack=true -jar minecraft.exe
(1) Turning off IPv6 in your network adaptor but having Java Version 7 installed still causes the problem.
(2) De-selecting the Jave Version 7 JRE via the Java Control Panal still causes the problem.
It looks like Java Version 7 Update 4 is (virtually unconditionally) trying to use IPv6, whether your adapter supports it or not.
I do not know if it is a bad implementation of the protocol, some kind of timeout or deadlock, a failure of the destination to communicate properly, etc.
One other issue: When you have Java Version 7 Update 4 installed ---
Outlook 2010 (vanilla Microsoft product) will OCASIONALLY crash (ie., you get a 'stopped working' msg followed by a program restart followed by another 'stopped working' msg followed by a complete program exit).
This problem is intermittent. A machine reboot usually fixes it, but it can just 'reappear'. Likewise, once you get it, waiting for a couple of hours before restarting Outlook sometimes fixes it.
All in all, I am just uninstalling Java Version 7. I can live with a workaround for minecraft, but having my primary mail client crash as well is just unacceptable.
This is likely to be the issue that java7 has where it decides to use IPv6 even when it shouldn't.
try something like
java -Djava.net.preferIPv4Stack=true -jar minecraft.exe
Thanks for this, gerbil. For anyone else searching this issue like I was, I ended up making a bat file which I now use to access Minecraft. Just change the file path to wherever your minecraft.exe is located, and make sure to save it as a .bat (all files) so it will be executable:
cd E:\Program Files (x86)\Minecraft\
java -Djava.net.preferIPv4Stack=true -jar minecraft.exe
I am receiving this exact same issue, but I don't understand this solution. I know that there are several files associated with Minecraft that are editable, but I don't have these files (I have only downloaded the minecraft.exe file so far). I've loaded, and re-loaded java, downloaded and re-downloaded the minecraft.exe file and I am stumped - any suggestions?
minecraft is located in %appdata%\.minecraft under your windows profile, and is hidden by default. %appdata% is a windows shortcut, so if you paste it into the address bar of a folder window, it'll take you to the location.
If you really have the "same" issue, then do as BrettLefty did.
You have your minecraft.exe somewhere.
Create a text file in the same place with Notepad or something called "minecraft.bat" (not minecraft.bat.txt !)
In the file put
It's Java 7. If it determines that your computer has IPv6 available (don't know how it determines this.. flips a proverbial coin perhaps), then it tries to connect via IPv6.... which doesn't work. and then it does nothing. no fallback to Ipv4
As far as I know this is a problem with Java 7's dual stack support. (Applications that are connecting via hostnames shouldn't need to know whether the underlying connections are Ipv4 or Ipv6.....)
I have just installed Version 7, Update 5 and it causes a different problem with free 0.30: The menu comes up sporadically with every mouse click. It appears to happen randomly on about 50% of clicks, either LMB or RMB, and this includes the click for "Back to game" in the main menu itself! I never had this happen before. This bug has not affected other types of input (keyboard keys.) When it does happen while clicking with the mouse, there is a small chance that the block will be placed or broken before the menu comes up. This is the first time I've ever had any untoward behaviour in Minecraft Classic. Prior to installing 7u5, everything that was supposed to work did.
I have noted no changes in the behaviour of Minecraft 4k, however the buttons are reversed in function (and were before 7u5.)
Terry
Follow-up: I have located Java 6u33 download page at http://java.com/en/d...d/manual_v6.jsp and will be testing for changed behaviour in both Minecraft 0.30 and Minecraft 4k in a few minutes.
Follow-up 2: After having some issues uninstalling 7u5 and getting the 6u33 installation to take (previous version 6u31), I found that Minecraft 0.30 and Minecraft 4k (still backwards mouse actions) behaved exactly the same as in 6u31... almost. I noticed that Minecraft 0.30 frame rates were almost triple, w00t! Also, in the process of this testing, I probably built the largest Nether Portal anyone has ever built in Minecraft 4k If anyone is having issues getting back to Java 6, I might be able to help.
I did this and when I opened the file, it would open but it'd close quickly And I'd get a java error again
You may have made a typo in the BAT file, or there could be a path problem, i.e. "can't find java"
Add the command PAUSE as the last line of the BAT file, and then it will stop and ask you to hit a key to continue, meanwhile you can see exactly what the error is.
how do I add that command or whatever its called into my minecraft when I launch it up because I'm having the EXACT SAME problem.. Im new to all of this..
<center>Failed to update news java.net.SocketException: Connection reset</center></body></html>
thats the error minecraft launcher gives me.
tried the bat file, still not connecting.
although like pkmasterpwns i dont understand how to incorporate the pause command into the batch file.
updated line to copy and paste please?
You can also add the parameter as a runtime parameter to your Java, for the time being until this is resolved.
In the Control Panel search for Java, and when you open the Java panel select the Java tab, then the View button.
In the row for Java 1.7, doubleclick in the field under Runtime Parameters, and place these in there.
After that, use OK to close out of both screens, and restart the Java (easiest way is to restart the computer) to ensure that Java now starts up with those additional parameters.
Redacted. I have only heard of the above working, but have not witnessed it personally.
Using a batch file to pass the custom parameters to java is the most reliable way at this stage, until minecraft.net supports IPv6.
If I have the lastest Version 6 of the Java JRE installed (Version 6, Update 32), everything works fine. The client starts up, displays the news page, connects to minecraft.net, and shows me my list of servers.
If I have the latest Version 7 of the Java JRE installed (Version 7, Update 4) almost nothing works. The client starts, but that is it:
<center>Failed to update news
java.net.ConnectException: Connection timed out: connect</center></body></html>").
Neither the 32 or 64 bit version of JRE 7.4 work (same results in each case).
Currently, I have both 6.32 and 7.4 installed (64 bit versions):
Apparently, there is something in the JRE 7.4 that completely locks minecraft.exe from the internet.
This is likely to be the issue that java7 has where it decides to use IPv6 even when it shouldn't.
try something like
java -Djava.net.preferIPv4Stack=true -jar minecraft.exe
When I added that string to my command to start up Minecraft, using JRE 7.4, it works.
Hmmm. I have both IPv4 and IPv6 enabled in my networking adapter. I wonder if turning off IPv6 would also fix the problem?
Thanks for the info!
(1) Turning off IPv6 in your network adaptor but having Java Version 7 installed still causes the problem.
(2) De-selecting the Jave Version 7 JRE via the Java Control Panal still causes the problem.
It looks like Java Version 7 Update 4 is (virtually unconditionally) trying to use IPv6, whether your adapter supports it or not.
I do not know if it is a bad implementation of the protocol, some kind of timeout or deadlock, a failure of the destination to communicate properly, etc.
One other issue: When you have Java Version 7 Update 4 installed ---
Outlook 2010 (vanilla Microsoft product) will OCASIONALLY crash (ie., you get a 'stopped working' msg followed by a program restart followed by another 'stopped working' msg followed by a complete program exit).
This problem is intermittent. A machine reboot usually fixes it, but it can just 'reappear'. Likewise, once you get it, waiting for a couple of hours before restarting Outlook sometimes fixes it.
All in all, I am just uninstalling Java Version 7. I can live with a workaround for minecraft, but having my primary mail client crash as well is just unacceptable.
The Java 7 IPv6 stuff is definitely whacked.
Thanks for this, gerbil. For anyone else searching this issue like I was, I ended up making a bat file which I now use to access Minecraft. Just change the file path to wherever your minecraft.exe is located, and make sure to save it as a .bat (all files) so it will be executable:
cd E:\Program Files (x86)\Minecraft\
java -Djava.net.preferIPv4Stack=true -jar minecraft.exe
You have your minecraft.exe somewhere.
Create a text file in the same place with Notepad or something called "minecraft.bat" (not minecraft.bat.txt !)
In the file put
java -Djava.net.preferIPv4Stack=true -jar .\minecraft.exe
save the file.
Double click the file.
Thank you for the plain English - This one's a little slow I did get it running by using the .BAT file.
Now this seems like a band-aid for a more serious problem. Is there an underlying reason that this is happening? Is a fix forthcoming from Mojang?
As far as I know this is a problem with Java 7's dual stack support. (Applications that are connecting via hostnames shouldn't need to know whether the underlying connections are Ipv4 or Ipv6.....)
also you should check out Link Removed
I have noted no changes in the behaviour of Minecraft 4k, however the buttons are reversed in function (and were before 7u5.)
Terry
Follow-up: I have located Java 6u33 download page at http://java.com/en/d...d/manual_v6.jsp and will be testing for changed behaviour in both Minecraft 0.30 and Minecraft 4k in a few minutes.
Follow-up 2: After having some issues uninstalling 7u5 and getting the 6u33 installation to take (previous version 6u31), I found that Minecraft 0.30 and Minecraft 4k (still backwards mouse actions) behaved exactly the same as in 6u31... almost. I noticed that Minecraft 0.30 frame rates were almost triple, w00t! Also, in the process of this testing, I probably built the largest Nether Portal anyone has ever built in Minecraft 4k If anyone is having issues getting back to Java 6, I might be able to help.
You may have made a typo in the BAT file, or there could be a path problem, i.e. "can't find java"
Add the command PAUSE as the last line of the BAT file, and then it will stop and ask you to hit a key to continue, meanwhile you can see exactly what the error is.
<center>Failed to update news
java.net.SocketException: Connection reset</center></body></html>
thats the error minecraft launcher gives me.
tried the bat file, still not connecting.
although like pkmasterpwns i dont understand how to incorporate the pause command into the batch file.
updated line to copy and paste please?
I poked Dinnerbone about it, so I know that someone is now aware of it. Don't know anything beyond that, unfortunately.
You can also add the parameter as a runtime parameter to your Java, for the time being until this is resolved.
In the Control Panel search for Java, and when you open the Java panel select the Java tab, then the View button.
In the row for Java 1.7, doubleclick in the field under Runtime Parameters, and place these in there.
-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false
After that, use OK to close out of both screens, and restart the Java (easiest way is to restart the computer) to ensure that Java now starts up with those additional parameters.
Redacted. I have only heard of the above working, but have not witnessed it personally.
Using a batch file to pass the custom parameters to java is the most reliable way at this stage, until minecraft.net supports IPv6.