将库添加到JRE

扫码查看
本文介绍了将库添加到JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在企业环境中工作,我们使用Java applet作为内部应用程序的一部分。 applet使用的Java类包含在我们用于开发的JDK中,但不包含在最终用户在其计算机上使用的JRE中。因此,每次加载applet时,用户似乎都在从服务器请求该类。

I work in an enterprise setting where we use a Java applet as part of an internal application. A Java class used by the applet is included in the JDK that we use to develop, but not in the JRE that end users have on their computers. As such, every time the applet is loaded, the users seem to be requesting the class from the server.

有没有办法将此类添加到JRE?作为JAR还是其他?

Is there a way to "add on" this class to the JRE? Either as a JAR or otherwise?

推荐答案

外观可能具有欺骗性。即使文件是本地缓存的,JRE也会报告从服务器下载。这是出于安全原因。

Appearances can be deceptive. The JRE will report downloading from the server even if the file is locally cached. This is for security reasons.

这篇关于将库添加到JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 21:32
查看更多