Skip to content

Gradle quarkusRun: invalid null character in command #48191

@rodcheater

Description

@rodcheater

Describe the bug

Running ./gradlew quarkusRun on a new Quarkus project fails with java.io.IOException: invalid null character in command.

Expected behavior

Gradle quarkusRun succeeds.

Actual behavior

Gradle quarkusRun fails.

How to Reproduce?

Steps to reproduce

  1. Create a new Quarkus project using Gradle as the build system: quarkus create app --gradle
  2. Run quarkusRun: cd code-with-quarkus && ./gradlew quarkusRun

Expected result

The app starts running.

Actual result

Gradle fails with java.io.IOException: invalid null character in command.

Output of uname -a or ver

Darwin Rods-MacBook-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:52:00 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6031 arm64

Output of java -version

openjdk version "21.0.7" 2025-04-15 OpenJDK Runtime Environment Homebrew (build 21.0.7) OpenJDK 64-Bit Server VM Homebrew (build 21.0.7, mixed mode, sharing)

Quarkus version or git rev

3.23.0

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.8

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions