Skip to content
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

Distribution fails to run on Windows #13760

Open
matrei opened this issue Oct 16, 2024 · 3 comments
Open

Distribution fails to run on Windows #13760

matrei opened this issue Oct 16, 2024 · 3 comments

Comments

@matrei
Copy link
Contributor

matrei commented Oct 16, 2024

Expected Behavior

.\gradlew assemble
unzip .\build\distribrutions\grails-7.0.0-SNAPSHOT.zip
.\build\distributions\grails-7.0.0-SNAPSHOT\bin\grails -version
| Grails Version: 7.0.0-SNAPSHOT
| JVM Version: 17.0.12

Actual Behaviour

.\gradlew assemble
unzip .\build\distribrutions\grails-7.0.0-SNAPSHOT.zip
.\build\distributions\grails-7.0.0-SNAPSHOT\bin\grails -version

Exception: java.lang.NoSuchMethodError thrown from the UncaughtExceptionHandler in thread "main"

Steps To Reproduce

No response

Environment Information

  • Operating system: Windows 11
  • JDK Version: OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode, sharing)

Example Application

No response

Version

7.0.0-SNAPSHOT

@matrei matrei added this to Grails 7 Oct 16, 2024
@matrei matrei moved this to Todo in Grails 7 Oct 16, 2024
@jamesfredley
Copy link
Contributor

more details: #13740 (comment)

@jamesfredley
Copy link
Contributor

This may have been resolved by #13801, but testing it is blocked by #13816

@jamesfredley
Copy link
Contributor

#13816 and #13801 got us past the initial issues.

now need to have org.gradle:gradle-tooling-api in the distribution

grails
Error: Unable to initialize main class org.grails.cli.GrailsCli
Caused by: java.lang.NoClassDefFoundError: org/gradle/tooling/BuildCancelledException

https://github.com/grails/grails-core/pull/13762/files set it to compileOnly so that the extra gradle repo was not needed in every project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants