问题描述
如何让JNLP在Ubuntu计算机上为OpenJDK 7工作?
How do I get JNLP working for OpenJDK 7 on a Ubuntu machine?
我正在尝试在 http://www.bugaco处链接到源代码. com/bioinf/clusterer/和下载源"文本在我的计算机上运行.
I'm trying to get the source code linked to at http://www.bugaco.com/bioinf/clusterer/ with the text "Download sources" to run on my machine.
当前,当我尝试运行
javac -cp ".:l2fprod-common-all-7.3.jar:jfreechart-1.0.17/lib/jfreechart-1.0.17.jar" com/bugaco/mioritic/impl/module/project/Main.java
它给我错误
./com/bugaco/ui/LoadBean.java:11: error: package javax.jnlp does not exist
import javax.jnlp.FileOpenService;
^
(以及许多其他错误)
我认为这表明我需要安装JNLP,以及在修复JNLP之后必须安装的其他软件包.
which I assume indicates that I need to install JNLP, along with other packages I'll have to install when I get JNLP fixed.
基于Mike Clark的回答 https://stackoverflow.com/a/12608844/38765 我认为"Demos and Samples"是为Open JDK 7安装JNLP的方法.
Based on Mike Clark's answer https://stackoverflow.com/a/12608844/38765I assumed that "Demos and Samples" is the way to install JNLP for Open JDK 7.
我在Ubuntu上,所以我试图使用"Ubuntu方式"进行安装.我安装了openjdk-7-demo,该自我描述为基于OpenJDK的Java运行时(演示和示例)".
I'm on Ubuntu, so I'm trying to use the "Ubuntu way" to install it. I installed openjdk-7-demo , which describes itself as "Java runtime based on OpenJDK (demos and examples)".
它仍然出现上述错误.我做错了什么或者被遗忘了做什么?
It's still giving the error described above. What have I done wrong, or forgotten to do?
我尝试浏览Java标签wiki.在初学者的资源"中唯一与我相关的非视频资源是"Java教程".唯一相关的链接是学习Java语言".它有一个关于软件包的部分,但是仅涉及如何创建自己的软件包,而不是如何安装其他人的软件包.
I tried browsing the tag wiki for java. The only non-video resource that looked relevant to me in "Beginners' resources" was "The Java Tutorials". The only link relevant from there was "Learning the Java Language". It had a section on packages, but that's only on how to create your own, rather than how to install other peoples' packages.
我正在使用64位的Ubuntu 12.04(精确)和Java 7
I'm using Ubuntu 12.04 (precise) 64-bit, and Java 7
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
推荐答案
如果要将JNLP与OpenSDK一起使用,则需要JNLP的IcedTea实现.
If you want to use JNLP with OpenSDK, you need the IcedTea implementation of JNLP.
在Ubuntu中,安装"icedtea-netx"软件包.
In Ubuntu, install the "icedtea-netx" package.
您需要的库位于/usr/share/icedtea-web/.
The libraries you need will be in /usr/share/icedtea-web/.
这篇关于在Ubuntu上为Open JDK 7安装JNLP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!