管理升级到Java 7 [英] Managing upgrades to Java 7

查看:182
本文介绍了管理升级到Java 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队使用了大量的Java应用程序和小程序(包括内部创建来自外部​​的)。

My team uses a lot of Java applications and applets (both internally created and from external sources).

由于Java 7,我们正在使用的某些应用程序的发布,我们已经发现了一些与外部应用程序和小程序问题不支持Java 7(虽然我不知道为什么 - 然而,有谈过,在提供这些应用的组织的技术支持,他们指出,他们的应用程序与Java 7的兼容)。

Since the release of Java 7, which we are using for some applications, we have found a number of problems with external applications and applets which do not support Java 7 (although I don't know why - however, having spoken to the tech support at the organisations that provide these applications, they indicate that their applications are not compatible with Java 7).

不幸的是,这些应用的国家,他们对Java的任何(最新的)版本(例如1.5+)工作。显然,这将是很好,如果这些applet和应用程序的提供者将修改其code指定他们可以工作的Java版本,而不是说明他们可以与他们没有版本。但是,我能在此期间做?

Unfortunately, many of these applications state that they work on any (recent) version of Java (e.g. 1.5+). Obviously, it would be nice if the providers of these applets and applications would amend their code to specify which version of Java they can work on, rather than stating they can work with versions that they don't. However, what can I do in the interim?

Webstart的应用:

对于这些我创建一个批处理文件中指定版本的JRE要使用的例如:

For these I create a batch file specifying which version of the JRE to use e.g.:

C:/"Program Files"/Java/jre6/bin/javaws http://www.website.com/path/to/app.jnlp

是否有这样做的更好的办法?

Is there a better way of doing this?

网络应用程序:

我已经没有用了指定网络应用程序的成功。我知道我可以指定JRE版本的Internet Explorer(<一个href=\"http://stackoverflow.com/questions/71254/force-internet-explorer-to-use-a-specific-java-runtime-environment-install\">e.g.这个问题),但我不想强迫所有的网络应用程序使用旧版本的Java - 我只是想指定由个案基础上

I've not had any success with specifying for web applets. I know I could specify the JRE version for Internet Explorer (e.g. this question), but I don't want to force all web applets to use an old version of Java - I only want to specify on a case by case basis.

我已经考虑创建将推出Internet Explorer中指定一个特定的JRE的批处理文件......沿着东西线

I had contemplated creating a batch file that would launch internet explorer with a particular JRE specified... something along the lines of

start iexplore [specify JRE] http://www.website.com/pageWithWebApplet.html

...但我不知道如何指定JRE。任何想法?

...but I don't know how to specify the JRE. Any ideas?

另外,如果有这样做的更好的办法,我很想知道。

Alternatively, if there are better ways of doing this, I would love to know.

推荐答案

有关小应用程序,你可以尝试保存页面的小程序是,加上其JNLP文件,编辑JNLP文件修改版本=1.6 +版本=1.6(或其他),HTML文件,以便该applet点改变的本地版本JNLP文件但一切点到原始网站,把修改过的文件在您的内部网,当你要使用的小程序在你的内部网的页面指向你的网络浏览器。由于applet的codeBase的仍将是外部网站上,而不是在您的Intranet,不可信的小程序仍然能够进行网络连接回到他们的源主机。

For an applet, you could try saving the page the applet is in, plus its JNLP file, edit the JNLP file to change version="1.6+" to version="1.6" (or whatever), change the HTML file so the applet points to the local version of the JNLP file but everything else points to the original site, put the modified files up on your intra-net, and point your web browsers at your intra-net's page when you want to use the applet. Since the applet's codebase still will be on the external website instead of on your intranet, untrusted applets will still be able to make network connections back to their originating host.

当然,这假定外部网站允许当HTTP引用不是他们的网站相关的文件被下载(即,它允许其资源的盗链)。

Of course, this assumes that the external website allows the relevant files to be downloaded when the HTTP referer isn't their site (that is, it allows "hotlinking" of its resources).

这篇关于管理升级到Java 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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