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.