Documentation

The Java™ Tutorials
Hide TOC
Questions and Exercises问题和练习
Trail: Deployment
Lesson: Java Web Start

Questions and Exercises: Java Web Start问题和练习:Java Web Start

Questions问题

  1. In a link that is to run a Java Web Start application, which file is specified as the a tag's href attribute?在运行Java Web Start应用程序的链接中,哪个文件被指定为a标记的href属性?

  2. Which MIME type must a Web server recognize in order for it to host Java Web Start applications?为了承载Java Web Start应用程序,Web服务器必须识别哪种MIME类型?

  3. In an application's JNLP file, which two elements must be specified within the resources element?在应用程序的JNLP文件中,必须在resources元素中指定哪两个元素?

  4. Which interface provides the ability to control how the Java Web Start application's resources are cached?哪个接口提供了控制Java Web Start应用程序资源缓存方式的能力?

    1. BasicService
    2. DownloadService
    3. PersistenceService
    4. ExtendedService
  5. True or False: Java Web Start applications run in a secure sandbox by default.正确或错误:默认情况下,Java Web Start应用程序在安全沙箱中运行。

  6. True or False: If a Java Web Start application is running in a secure sandbox, JAR files for the application can reside on different servers.正确或错误:如果Java Web Start应用程序在安全沙箱中运行,则该应用程序的JAR文件可以驻留在不同的服务器上。

  7. For a Java Web Start application to support operations outside of the secure sandbox, what must you do?要让Java Web Start应用程序支持安全沙箱之外的操作,您必须做什么?

Exercises练习

  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.编写要添加到JNLP文件中的XML代码,以请求应用程序完全访问客户端系统。

  2. For a Java Web Start application, you have two icons, one.gif and two.gif, in the images directory in a JAR file. 对于Java Web Start应用程序,JAR文件中的images目录中有两个图标,one.giftwo.gifWrite the application code you would use to access these images.编写用于访问这些图像的应用程序代码。

Check your answers.


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