Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

No internet access with latest version of Java JRE

java jre network connect

  • Please log in to reply
34 replies to this topic

#1

Jelach
    Jelach

    Tree Puncher

  • Members
  • 14 posts

Posted 07 June 2012 - 03:49 AM

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><font color="#808080"><br><br><br><br><br><br><br><center>Failed to update news<br>java.net.ConnectException: Connection timed out: connect</center></font></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.

Register or log in to remove.

#2

gerbil
    gerbil

    Support Guru

  • Members
  • 4886 posts

Posted 07 June 2012 - 02:16 PM

Great diagnostic information.

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

#3

Jelach
    Jelach

    Tree Puncher

  • Members
  • 14 posts

Posted 07 June 2012 - 04:03 PM

Hah!  You are exactly correct!

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!

#4

Jelach
    Jelach

    Tree Puncher

  • Members
  • 14 posts

Posted 08 June 2012 - 07:31 PM

Ok.  Here are some more facts:

(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.

#5

gerbil
    gerbil

    Support Guru

  • Members
  • 4886 posts

Posted 08 June 2012 - 08:17 PM

Are you sure that Outlook issue is at all related to Java 7?  Seems odd that it would be.

The Java 7 IPv6 stuff is definitely whacked.

#6

BrettLefty

Posted 10 June 2012 - 09:03 AM

View Postgerbil, on 07 June 2012 - 02:16 PM, said:

Great diagnostic information.

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

#7

MalcomFox

Posted 13 June 2012 - 04:39 AM

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?

#8

starlinvf
    starlinvf

    Glowstone Miner

  • Members
  • 3169 posts

Posted 13 June 2012 - 08:53 AM

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.

#9

gerbil
    gerbil

    Support Guru

  • Members
  • 4886 posts

Posted 13 June 2012 - 03:00 PM

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

java -Djava.net.preferIPv4Stack=true -jar .\minecraft.exe

save the file.
Double click the file.

#10

MalcomFox

Posted 13 June 2012 - 06:33 PM

LOL @ gerbil

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?

#11

gerbil
    gerbil

    Support Guru

  • Members
  • 4886 posts

Posted 13 June 2012 - 07:25 PM

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.....)

#12

shugarplox
  • Location: Under the sea with spongebob
  • Minecraft: shugarplox

Posted 16 June 2012 - 11:46 AM

View Postgerbil, on 13 June 2012 - 03:00 PM, said:

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

java -Djava.net.preferIPv4Stack=true -jar .\minecraft.exe

save the file.
Double click the file.

I did this and when I opened the file, it would open but it'd close quickly Posted Image And I'd get a java error again :(

#13

SuperSupermario24

Posted 16 June 2012 - 01:06 PM

View Postshugarplox, on 16 June 2012 - 11:46 AM, said:

I did this and when I opened the file, it would open but it'd close quickly Posted Image And I'd get a java error again Posted Image
Please post your java error.
Posted Image
I may look like an ordinary creeper, but don't be fooled. I can bend the very fabric of space and time to my liking.
ヽ(*・ω・)ノ Be Happy
Fluttershy is best pony

#14

featherwinglove

Posted 16 June 2012 - 03:03 PM

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.

Edited by featherwinglove, 16 June 2012 - 04:42 PM.


#15

gerbil
    gerbil

    Support Guru

  • Members
  • 4886 posts

Posted 17 June 2012 - 01:23 PM

View Postshugarplox, on 16 June 2012 - 11:46 AM, said:

I did this and when I opened the file, it would open but it'd close quickly Posted Image And I'd get a java error again Posted Image
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.

#16

Pkmasterpwnz

Posted 17 June 2012 - 08:42 PM

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..

#17

gerbil
    gerbil

    Support Guru

  • Members
  • 4886 posts

Posted 18 June 2012 - 12:01 AM

That was a modification to a my instructions earlier in the thread.

#18

cmonicman

Posted 18 June 2012 - 07:49 AM

<html><body><font color="#808080"><br><br><br><br><br><br><br><center>Failed to update news<br>java.net.SocketException: Connection reset</center></font></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?

#19

gerbil
    gerbil

    Support Guru

  • Members
  • 4886 posts

Posted 18 June 2012 - 02:07 PM

Posted Image

java -Djava.net.preferIPv4Stack=true -jar .\minecraft.exe
PAUSE


#20

Marc
    Marc

    Customer Support Manager

  • Mojang
  • 261 posts
  • Location: WA, USA
  • Minecraft: Marc

Posted 22 June 2012 - 01:14 AM

View PostMalcomFox, on 13 June 2012 - 06:33 PM, said:

Is a fix forthcoming from Mojang?

I poked Dinnerbone about it, so I know that someone is now aware of it. Don't know anything beyond that, unfortunately.
Have questions? Please visit help.mojang.com
Twitter: @Marc_IRL