Skip to content

Process finished with non-zero exit value 1 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
InAnYan opened this issue Jun 18, 2024 · 2 comments
Open

Process finished with non-zero exit value 1 #4

InAnYan opened this issue Jun 18, 2024 · 2 comments

Comments

@InAnYan
Copy link

InAnYan commented Jun 18, 2024

Description

After applying the plugin, java.exe exits with 1 (the full path is: C:\Users\ruslan\.jdks\corretto-21.0.2\bin\java.exe).

System (and other) info

OS: Windows.
JDK: Corretto 21.

Logs

In the logs, there is no important information:

2024-06-18T10:47:05.828+0300 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
2024-06-18T10:47:05.828+0300 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'C:\Users\ruslan\.jdks\corretto-21.0.2\bin\java.exe'' finished with exit value 1 (state: FAILED)
2024-06-18T10:47:05.829+0300 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute exec for :run' completed
2024-06-18T10:47:05.830+0300 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Executing task ':run'' completed
2024-06-18T10:47:05.846+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2024-06-18T10:47:05.847+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2024-06-18T10:47:05.847+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2024-06-18T10:47:05.847+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2024-06-18T10:47:05.847+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':run'.
2024-06-18T10:47:05.847+0300 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Process 'command 'C:\Users\ruslan\.jdks\corretto-21.0.2\bin\java.exe'' finished with non-zero exit value 1
@rocketraman
Copy link
Collaborator

Are you using Java modules? If so, can you try it again with the latest release?

@koppor
Copy link
Contributor

koppor commented Apr 26, 2025

InAnYan and me are working on the same project. We do use Java modules. With the plugin activated, no tests are found any more. I assume, it is an incompatibility with org.javamodularity.moduleplugin. Still needs to be investigated.

I think, our issue is that there are too many --add-module statements in the command line. I tried to patch at java9-modularity/gradle-modules-plugin#282, but doesn't seem to work when tests are executed.

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

No branches or pull requests

3 participants