Java Applet 可以访问本地文件系统吗 [英] Can a Java Applet Access Local File System

查看:31
本文介绍了Java Applet 可以访问本地文件系统吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个 java 小程序,它从本地文件系统上的 JAR 文件中获取信息,并创建一个 jpanel 以在小程序中显示.

I am creating a java applet, that gets information out of a JAR file on my local file system, and creates a jpanel to display in the applet.

我让小程序在 Eclipse 中的小程序查看器上正确加载,但是每当我启动我创建的 Html 文件时它都不会加载.

I am getting the applet to load correctly on the appletViewer in Eclipse, but it will not load whenever i launch the Html file i created.

html 文件指向类文件,也指向外部 jar.

The html file is points to the class files, also to the external jars.

有什么建议吗?

谢谢

推荐答案

是的,如果小程序是用 jarsigner 工具签名的.

Yes, if the applet is signed with the jarsigner tool.

这篇关于Java Applet 可以访问本地文件系统吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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