且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我的 Java 小程序上的 SecurityException

更新时间:2022-05-04 19:05:37

您的 jar 网址看起来很奇怪.就我个人而言,我从未见过有人试图从 HTTP 以外的 URL 下载小程序.实际上,这意味着您的小程序仅适用于局域网中的用户,他们可以访问名为视频"的共享计算机.你确定这是你想要的吗?

Your jar URL looks strange. Personally I have never seen that somebody tries to download applet from URL other than HTTP. Actually it means that your applet will work only for users that are into your LAN where they have access to shared computer named "Videos". Are you sure this is what you want?

第二件事是:尝试将 JAR URL 复制并粘贴到您的 Web 浏览器,看看会发生什么.如果您可以在不输入密码的情况下直接下载 jar 文件,则在将 URL 放入小程序标签时,这应该可以工作.否则不会.因此,请先检查您的网址并解决其问题.

The second thing is: try to just copy and paste the JAR URL to your web browser and see what will happen. If you are able to download the jar file directly without entering password this should work when URL is placed into the applet tag. Otherwise it will not. So, first check your URL and fix its problem.