Default gradle run Java project configuration fails at running java subproject
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 21
### What happened
I generated a project using the LibGDX engine project generator, but noticed that netbeans can't run the Java subproject using the run option ou the run button of the interface.
That is the command

That is the error

I tried to run the project outside the IDE through the Windows command prompt and it worked

I think that the commands used to run the project should be configurable to solve problems like it
### Language / Project Type / NetBeans Component
Java Gradle subproject
### How to reproduce
Generate a project using the LibGDX engine project generator
Open the root project and the desktop subproject through NetBeans
Try run the desktop subproject using the run button
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windwos 10
### JDK
JDK 20
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Reproduce the failure with a LibGDX-generated project on Windows 10, opening the root project and desktop Java subproject in NetBeans. Compare the command used by the desktop subproject's Run action with the command that succeeds from Windows Command Prompt. Done means the NetBeans Run button launches the Java subproject successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100