我可以使用哪些非 Sun Java 来运行 Clojure?

发布于 2024-08-15 13:03:46 字数 101 浏览 2 评论 0原文

我正在自动化为一个项目构建开发虚拟机的过程,并且很难让 sun-java-6 安装在非交互式环境中,因为它确实想询问许可证。就 clojure 友好的 java 而言,我的其他选择是什么?

I'm automating the process of building development-VMs for a project and having a really hard time getting sun-java-6 to install in a non-interactive environment because it really wants to ask about licenses. what are my other options are far as clojure friendly javas go?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

生死何惧 2024-08-22 13:03:46

如果我没记错的话,可以明确设置“接受许可证”位,因为安装过程的输出表明许可证已在稍后阶段被接受。因此,请查看 Ubuntu 软件包并找出如何执行此操作。

我不会采用 OpenJDK 方式,因为我不相信它已经通过了 TCK。


编辑:看来这是这样做的方法:

DEBIAN_FRONTEND=noninteractive apt-get install -y java5-sun-jre || :
debconf 'echo SET shared/accepted-sun-dlj-v1-1 true; echo $(read) >&2'
apt-get install -y java5-sun-jre

http://ubuntuforums。 org/showpost.php?p=6752243&postcount=9

If I recall correctly the "accept the license" bit can be set explicitly as the output from the installation process says that the license has already been accepted at a later stage. Hence, look into the Ubuntu package and figure out how to do this.

I would not go the OpenJDK way as I do not believe it has passed the TCK yet.


EDIT: It appears that this is the way to do it:

DEBIAN_FRONTEND=noninteractive apt-get install -y java5-sun-jre || :
debconf 'echo SET shared/accepted-sun-dlj-v1-1 true; echo $(read) >&2'
apt-get install -y java5-sun-jre

http://ubuntuforums.org/showpost.php?p=6752243&postcount=9

从此见与不见 2024-08-22 13:03:46

任何经过认证的 JVM 都应该可以做到这一点 - 例如 JRockit此处有 JVM 列表。请注意,其中一些适用于嵌入式平台等,因此不适用。

Any certified JVM should do the trick - e.g. JRockit. There's a list of JVMs here. Note that some of these are for embedded platforms and the like, so not applicable.

情话墙 2024-08-22 13:03:46

OpenJDK 没有 EULA,可以非交互式安装。另请参阅 http://openjdk.java.net/install/

OpenJDK does not have a EULA and can be installed non-interactively. See also http://openjdk.java.net/install/

探春 2024-08-22 13:03:46

至少在 Ubuntu 9.04 中,我使用了 OpenJDK 并且没有出现任何问题,尽管我从来没有把它打败到说没有 0 个问题,而且这是在最近的 1.1 RC 之前,所以情况可能也发生了变化。然而它是完全可用的,我怀疑这已经改变了。

With Ubuntu 9.04 at least I used OpenJDK and had no problems, though I never beat it up enough to say there were 0 problems, and this was before recent 1.1 RCs so things may have changed there as well. However it was perfectly usable and I doubt that has changed.

新人笑 2024-08-22 13:03:46

唔。您是否尝试过使用可再发行JRE?我知道当我为某些 Windows 软件编写安装程序时,您所要做的就是提取目录结构,它就可以正常工作。

Hmm. Have you tried using the redistributable JRE? I know when I was writing an installer for some windows software, all you had to do was extract the directory structure and it would work just fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文