gpt4 book ai didi

java - 如何在 Java 9 中使用拼图

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:16:07 25 4
gpt4 key购买 nike

我正尝试按照此链接 http://openjdk.java.net/projects/jigsaw/doc/quickstart.html 尝试 Jigsaw 项目

但是,我在 Java 9 早期访问版本中找不到 jmod 命令。同样,javac 发出一条错误消息,指出

javac: invalid flag: -modulepath".

有什么想法吗?在 Java 9 中试验 Jigsaw 的最佳方法是什么?

最佳答案

虽然筹备JEP 201JEP 220在 JDK 9 build 41 中都存在,这是 JSR 376 的主要拼图工作还没有出现。

回应a similar question on the mailing list ,关于该快速入门指南:

This is a quick start documentation from the original Jigsaw prototype of a few years ago, I guess it's a reminder that some of these obsolete pages needs to be updated to make it clear that they are obsolete.

以及关于工作的当前状态:

JSR 376 is just starting and so there isn't a JEP for the module system yet. It will all come in time.

因此,截至 2015 年 3 月,OpenJDK 9 版本不包含 Jigsaw 支持。 jigsaw-dev mailing list是寻找进步的最佳场所。它also confirms that status :

So too early to be looking for options like -modulepath.

在包含在常规 JDK​​ 9 构建中之前,特定于 Jigsaw 的构建很可能会可用。

关于java - 如何在 Java 9 中使用拼图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29366265/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com