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

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

问题描述

我正在创建一个Java applet,该Java applet从本地文件系统上的JAR文件中获取信息,并创建一个显示在applet中的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中的appletViewer上,但是每当我启动创建的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天全站免登陆