导入“javax.jnlp"无法解决 [英] The import "javax.jnlp" cannot be resolved

查看:72
本文介绍了导入“javax.jnlp"无法解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习 Java 并尝试使用 Java web start 运行一些示例.

I am learning Java and trying to run some examples using Java web start.

但是,我似乎找不到那个包javax.jnlp.

However, I cannot seem to find that package javax.jnlp.

同样的错误在 windows 和 linux 上都困扰着我.我在 windows 上安装了 oracle jdk 7.OpenJDK 1.6 是在 linux 上安装的版本.

This same error is haunting me on both windows and linux.I've installed oracle jdk 7 on windows.OpenJDK 1.6 is the version installed on linux.

在互联网上搜索软件包,但没有运气.它在 oracle 的网站上不再可用,因为他们坚持认为该软件包是 jdk 的一部分.

Searching the internet for the package with no luck.It is no longer available on oracle's website because they insist that the package is a part of the jdk.

我已经在安装目录中搜索过它.一些人声称它在 jnlp.jar 文件中,其他人声称它在 javaws.jar 文件中......两个文件都没有是我安装的一部分.

I've searched the installation directories for it.some claim it is in the jnlp.jar file, others claim in javaws.jar file...neither files are part of my installation.

推荐答案

来自 Oracle 页面:

From the Oracle page:

jardiff 工具、jnlp-servlet.jar 文件和 jnlp.jar 文件可以在 JDK 的示例目录中找到.

The jardiff tool, jnlp-servlet.jar file, and jnlp.jar file can be found in the samples directory of the JDK.

在我的作品中,它位于:

On my comp it is in:

.../jdk1.6.0_23/sample/jnlp/servlet/jnlp.jar

对于 Java 7,您必须下载 演示和示例 分开:

For Java 7 you have to download Demos and Samples separately:

Windows x86(32 位)15.62 MB jdk-7u4-windows-i586-demos.zip

Windows x86 (32-bit) 15.62 MB jdk-7u4-windows-i586-demos.zip

Windows x64(64 位)15.69 MB jdk-7u4-windows-x64-demos.zip

Windows x64 (64-bit) 15.69 MB jdk-7u4-windows-x64-demos.zip

你会在里面找到 jnlp.jar:jdk1.7.0_04\sample\jnlp\servlet\jnlp.jar

You will find jnlp.jar inside: jdk1.7.0_04\sample\jnlp\servlet\jnlp.jar

这篇关于导入“javax.jnlp"无法解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆