Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@Xasmedy
Copy link
Contributor

@Xasmedy Xasmedy commented Nov 12, 2025

The RunOperation is using the java -m flag to run the modular application, but it did not provide the required main-class as of documentation -m <module>[/<mainclass>] [args...].

The `RunOperation` is using the java `-m` flag to run the modular application, but it did not provide the required main-class as of documentation `-m <module>[/<mainclass>] [args...]`.
@Xasmedy
Copy link
Contributor Author

Xasmedy commented Nov 12, 2025

Without this fix a modular application would not be able to run, and the following error would be returned:
module <my-module> does not have a ModuleMainClass attribute, use -m <module>/<main-class>

ModuleMainClass is an attribute that is inserted in the module-info.class, it's useful for modular jar execution but from what I understood requires a bit more work.

@gbevin gbevin merged commit 6f54789 into rife2:main Nov 16, 2025
0 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants