Adenauer Gabriel created CASSANDRA-20990:
--------------------------------------------
Summary: Windows build failure: Ant task cannot execute Gradle
wrapper under modules/accord (error=193)
Key: CASSANDRA-20990
URL: https://issues.apache.org/jira/browse/CASSANDRA-20990
Project: Apache Cassandra
Issue Type: Bug
Components: Accord, Build
Reporter: Adenauer Gabriel
Assignee: Adenauer Gabriel
Attachments: error1.png
The build process fails on Windows when running the Ant task that invokes the
Gradle wrapper inside the {{modules/accord}} directory.
The failure is caused by the {{gradlew}} script being a Unix shell file
({{{}#!/bin/bash{}}}) rather than a Windows batch file, which triggers the
{{CreateProcess error=193, %1 is not a valid Win32 application}} exception.
*Environment:*
OS: Windows 11 Pro (Version 10.0.26200 Build 26200)
Java: Java(TM) SE Runtime Environment 18.9 (build 11.0.21+9-LTS-193)
JVM: Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.21+9-LTS-193, mixed
mode)
Ant: Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Cassandra branch: trunk (latest, cloned from apache/cassandra)
*Steps to reproduce:*
1) git clone https://github.com/apache/cassandra.git
2) {{ cd cassandra }}
3) ant build
4) Observe the failure when the {{build-accord.xml}} script is executed:
BUILD FAILED
D:\...\cassandra\.build\build-accord.xml:22: Execute failed:
java.io.IOException:
Cannot run program "D:\...\cassandra\modules\accord\gradlew" (in directory
"D:\...\cassandra\modules\accord"): CreateProcess error=193, %1 is not a valid
Win32 application
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]