嗨,我编写了包含小程序的 Web 应用程序,我使用这个标签在 Html 页面中启动我的小程序
<applet codebase="http://localhost:8084/WebForSpark" code="AppletBroadcaster.ZkusebniApplet" archive="AppletBroadcaster.jar, jave.jar " width="500" height="500"></applet>
我需要在我的小程序中使用外部库 jave.jar,所以我将此文件手动添加到我的 Webproject 的 bulid/web 文件夹中。所以一切运行良好。当运行我的 webproject java 控制台时写这个
Basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/ with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry found [url: http://localhost:8084/WebForSpark/jave.jar, version: null] prevalidated=false/0
cache: Resource http://localhost:8084/WebForSpark/jave.jar has expired.
network: Connecting http://localhost:8084/WebForSpark/jave.jar with proxy=DIRECT
network: ResponseCode for http://localhost:8084/WebForSpark/jave.jar : 304
network: Encoding for http://localhost:8084/WebForSpark/jave.jar : null
network: Disconnect connection to http://localhost:8084/WebForSpark/jave.jar
cache: Reading Signers from 1048 http://localhost:8084/WebForSpark/jave.jar | C:\Users\TTT\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\3\65f57583-24e73fd0.idx
cache: Done readSigners(http://localhost:8084/WebForSpark/jave.jar)
cache: Read manifest for http://localhost:8084/WebForSpark/jave.jar: read=1001 full=1001
security: Validate the certificate chain using CertPath API
security: The certificate hasnt been expired, no need to check timestamping info
security: Found jurisdiction list file
security: No need to checking trusted extension for this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: This OCSP End Entity validation is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
security: Checking if certificate is in Deployment session certificate store
security: Checking if certificate is in Internet Explorer TrustedPublisher certificate store
basic: Dialog type is not candidate for embedding
所以很明显,我的 build/web 文件夹中的 jave.jar 是成立的。
但是当我在我的小程序中按下用于从 jave.jar 执行一些操作的按钮时,javaconsole 会这样写
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/ with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Cache entry not found [url: http://localhost:8084/WebForSpark/lib/jave.jar, version: null]
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
network: Connecting http://localhost:8084/WebForSpark/lib/jave.jar with proxy=DIRECT
jave.jar 应该做的所有事情都正确完成,但我的问题是为什么当我的 jave.jar 在
http://localhost:8084/WebForSpark/
并在小程序启动期间成功加载...我可以做什么来不调用 lib/jave.jar 以及为什么调用它?多谢