Where is JnlpDownloadServlet in JDK 7?

淺唱寂寞╮ 提交于 2019-12-10 16:37:45

问题


According to Oracle's online documentation, JnlpDownloadServlet is still a part of Java 7: http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/downloadservletguide.html

But I just installed JDK 1.7.0, and neither jnlp-servlet.jar nor jardiff.jar appear anywhere in my Java home, at least on Windows. I ran a search through every jar in the directory (using the excellent ack command-line utility) and none of them contain JnlpDownloadServlet.


回答1:


Starting with Java 7 Update 2 the "Demos and Samples" were made into a separate download.

You can find the download link to the latest "Demos and Samples" listed here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
(Search on page for "samples").

You will find jnlp-servlet.jar, etc. therein:

jdk-7u6-windows-i586-demos.zip:/jdk1.7.0_06/sample/jnlp/servlet/jnlp-servlet.jar




回答2:


Oddly, the Mac version doesn't have it. Have to download the windows samples. Why different platforms should have different samples on the write-once run-anywhere platform is beyond me.



来源:https://stackoverflow.com/questions/12608481/where-is-jnlpdownloadservlet-in-jdk-7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!