processing / processing/processing4
Implement support for handling Java “modules” and clean up JavaFX-specific workarounds
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 494
- Forks
- 183
- Avg merge
- 4h 39m
- Merged PRs (30d)
- 3
Description
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?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the build and bundling process for JavaFX 16 modules, including how the PDE runs projects and how exports are assembled. Compare the proposed modulesPath/module-list approach with adding command-line options through library.properties. Done means JavaFX modules work without the current special-case workarounds in both PDE runs and exports.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100