processing / processing/processing4
Implement support for handling Java “modules” and clean up JavaFX-specific workarounds
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 494
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
描述
Created by: benfry
JavaFX 16 (which we're using as of 4.0 alpha 5) is bundled as a set of Java “modules,” rather than regular .jar files. As such, it will complain if the code is loaded from the usual CLASSPATH.
For now, there are some workarounds in the build process that treat the (newly separated) JavaFX library as a special case, but this is pretty gross, and we need to either:
- Start tracking a
modulesPathand module lists during build and bundling so that it can be specified when running from the PDE and when exporting. - Alternatively, we could add additional information to
library.propertiesso that special command line options can be added. In this case, it would be--add-modules javax.base, etc, but could also be used to cover-XstartOnFirstThreadfor libraries that require that (LWJGL?)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 JavaFX 16 模块的构建和打包流程,包括 PDE 如何运行项目以及如何组装导出内容。将提议的 modulesPath/module-list 方式与通过 library.properties 添加命令行选项的方式进行比较。当 JavaFX 模块在 PDE 运行和导出过程中都无需当前的特殊处理 workaround 即可工作时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- build-system, desktop
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100