文档

Java™ 教程-Java Tutorials 中文版
问题和练习
Trail: Deployment
Lesson: Java Web Start

问题和练习:Java Web Start

问题

  1. In a link that is to run a Java Web Start application, which file is specified as the a tag's href attribute?

  2. Which MIME type must a Web server recognize in order for it to host Java Web Start applications?

  3. In an application's JNLP file, which two elements must be specified within the resources element?

  4. Which interface provides the ability to control how the Java Web Start application's resources are cached?

    1. BasicService
    2. DownloadService
    3. PersistenceService
    4. ExtendedService
  5. 对或错:Java Web Start applications run in a secure sandbox by default.

  6. 对或错:If a Java Web Start application is running in a secure sandbox, JAR files for the application can reside on different servers.

  7. For a Java Web Start application to support operations outside of the secure sandbox, what must you do?

练习

  1. Write the XML code you would add to a JNLP file in order to request that the application have complete access to the client system.

  2. For a Java Web Start application, you have two icons, one.gif and two.gif, in the images directory in a JAR file. Write the application code you would use to access these images.

检查一下你的答案。


Previous page: Common Java Web Start Problems
Next page: Doing More With Java Rich Internet Applications