为什么在成功安装 JRE 后 Java 7 无法验证 - Java 7 没有运行我的任何浏览器 [英] Why does Java 7 fail to Verify after successful JRE installation - Java 7 not running my any browser

查看:29
本文介绍了为什么在成功安装 JRE 后 Java 7 无法验证 - Java 7 没有运行我的任何浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题困扰了我几天,直到我找到了几乎完整的答案,但我想先分享这个问题:

This question was dogging me for a few days until I found almost a full answer but I want to share the issue first:

问题

我有一台支持 IPv4 和 IPv6 的 Windows 7 pro 64 位笔记本电脑(稍后很重要)我下载并安装了最新的 Java 7 u 51 jre/浏览器插件,在它最终重定向并说无法验证"之前总是会得到一个灰色的小程序框,如果安装了 java.

I have a Windows 7 pro 64 bit laptop that supports both IPv4 and IPv6 (important later) I downloaded and installed the latest Java 7 u 51 jre / browser plugin and would always get a grey applet box before it would eventually redirect and say "failed to verify" if java was installed.

我也是一名 Java 开发人员,并且安装了一些 JDK 和 jres.认为这是我的环境,我从系统中彻底清除了 jave(我运行了 JavaRa 并确保删除了所有内容 http://singularlabs.com/software/javara/)

I am also a java developer and had a few JDKs installed as well as jres. Thinking it was my environment I did a complete wipe of jave from my system (I ran JavaRa and made sure everything was removed http://singularlabs.com/software/javara/)

我为 chrome 插件安装了 32 位版本的 JRE,并确保所有设置和安全信息都是正确的(根据关于此主题的许多帖子).

I installed the 32 bit version of the JRE for the chrome plugin and made sure all the setting and security info was correct (per the many posts about this topic).

清除所有缓存(浏览器和 java)后,在我的防火墙上打孔(甚至禁用它以查看是否可以解决它)以及以管理员身份运行,验证 java 已安装并在我的所有浏览器中运行(它在 IE、Chrome 和 FF 中失败)

After clearing all cache (browser and java), punching holes through my firewall (even disabling it to see if that would resolve it) as well as running things as administrator, verifying java was installed and running in all my browsers (it failed in IE, Chrome and FF)

所有这些都是关于如何解决 Java 7 无法在任何浏览器中运行的问题的许多帖子.

All of this was per many posts that said how to solve the issue of Java 7 not running in any browser.

通过 Java 控制面板使用 Java 控制台启用完整跟踪和调试后我终于从控制台中显示的堆栈跟踪中得到了一些不错的线索.它无法从 java 或任何具有小程序或 jnlp Web 启动文件的站点获取资源.

After enabling full trace and debugging with the Java console via the Java Control Panel I finally get some decent clues from the stack traces displayed in the console. It was failing to get resources from java or any site that had an applet or jnlp web start file.

推荐答案

解决方案

最后我在这里看到了这篇文章(32 位 Windows 7 上的 Java 7 - Java Webstart - 无法加载资源)

Finally I ran across this post here (Java 7 on 32-bit Windows 7 - Java Webstart - Unable to load resource)

在当前JRE的Java控制面板(java选项卡,视图)下的运行时参数中添加-Djava.net.preferIPv4Stack=true"时,问题解决了.我能够将我的安全设置恢复到适当的级别,并且能够运行 Java 验证测试以及一堆其他小程序.

When adding "-Djava.net.preferIPv4Stack=true" to the runtime parameters under the Java Control Panel (java tab, view) for the current JRE, it solved the problem. I was able to restore my security setting to proper levels and was able to run the java verification tests as well asa bunch of other applets just fine.

当它开始运行 jnlp 文件时,除非我手动编辑 jnlp 文件并将其添加到 vm args 中,否则我仍然会遇到错误,即

When it cam to running jnlp files, I would still get errors unless I manually edit the jnlp file and add it to the vm args i.e.

如果要在系统范围内应用此更改,请添加 _JAVA_OPTIONS 环境变量并将 -Djava.net.preferIPv4Stack=true 添加到其中

If you want to apply this change system wide, add the _JAVA_OPTIONS environment variable and add -Djava.net.preferIPv4Stack=true to it

问候,肖恩·雷辛托

这篇关于为什么在成功安装 JRE 后 Java 7 无法验证 - Java 7 没有运行我的任何浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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