将库添加到 JRE [英] Adding Library to JRE

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

问题描述

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

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?

推荐答案

因此,每次加载小程序时,用户似乎都在从服务器请求该类.

As such, every time the applet is loaded, the users seem to be requesting the class from the server.

外表可能具有欺骗性.即使文件在本地缓存,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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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