为什么我只在某些Windows 7系统上需要java.net.preferIPv4Stack = true? [英] Why do I need java.net.preferIPv4Stack=true only on some windows 7 systems?

查看:1293
本文介绍了为什么我只在某些Windows 7系统上需要java.net.preferIPv4Stack = true?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7(64位)计算机上使用Java已经有一段时间了,并且从未遇到过无法创建网络连接的问题。现在在我正在工作的公司的系统上,我需要设置-Djava.net.preferIPv4Stack = true,或者似乎java进程无法创建单个连接。

I have used Java on Windows 7 (64bit) machines for quite some time and have never had problems with not being able to create a network connection. Now on the systems at the company I'm working for I need to set "-Djava.net.preferIPv4Stack=true" or it seems the java processes are not able to create a single connection.

缺点是,如果我没有设置_JAVA_OPTIONS,我将不得不配置大量服务来使用此设置。但是,如果我使用它,Java将这个愚蠢的拾起:_JAVA_OPTIONS ...输出到stderr(不知道哪个人做出了那个愚蠢的决定)。然而,这使得我的GWT编译在IntelliJ中失败。

The downside is that if I don't set "_JAVA_OPTIONS" I would have to configure tons of services to use this setting. However if I use it Java outputs this silly "Picked up: _JAVA_OPTIONS..." to stderr (Wonder which guy made that silly decision). This however makes my GWT compiles fail in IntelliJ.

我想知道的...这是我第一次遇到这些问题,我想他们必须不知何故与操作系统的设置有关。可能导致这些问题的原因(正如我所提到的......我有大约4个其他具有Windows 7和64位java vms的系统没有这些问题)。

What I would like to know ... this is the first time I'm having these problems and I guess they must somehow be related to the setup of the Operating System. What is probably causing these problems (As I mentioned ... I have about 4 other Systems with windows 7 and 64 bit java vms that don't have these problems).

Chris

推荐答案

好的,我们找到了原因。

Ok so we found out the reason.

这个问题似乎发生在包含我们公司使用的特殊版本远程访问软件的系统上。这似乎已经将一些修改后的dll插入到Windows网络堆栈中(我们被告知为了自动检测网络连接)。看起来这个DLL有一些问题,导致所有IPv6流量被阻止。它还使受影响的机器定期使用蓝屏。卸载该软件使系统Bluescreen免费,我不再需要preferIPv4Stack设置。

This problem seemed to have occured on systems containing a special version of remote access software that our company used. This seems to have inserted some modified dlls into Windows network stack (We were told in order to auto-detect network connectivity). It seems this dll had some issues, causing all IPv6 traffic to be blocked. It also caused the affected Machines to have regular Bluescreens. Uninstalling that software got the system Bluescreen free and I no longer need the preferIPv4Stack setting.

这篇关于为什么我只在某些Windows 7系统上需要java.net.preferIPv4Stack = true?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆