我可以使用哪些非 Sun Java 来运行 Clojure?
我正在自动化为一个项目构建开发虚拟机的过程,并且很难让 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果我没记错的话,可以明确设置“接受许可证”位,因为安装过程的输出表明许可证已在稍后阶段被接受。因此,请查看 Ubuntu 软件包并找出如何执行此操作。
我不会采用 OpenJDK 方式,因为我不相信它已经通过了 TCK。
编辑:看来这是这样做的方法:
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:
http://ubuntuforums.org/showpost.php?p=6752243&postcount=9
任何经过认证的 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.
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/
至少在 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.
唔。您是否尝试过使用可再发行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.