apache / apache/netbeans

Default gradle run Java project configuration fails at running java subproject

Open
#7,212 0 comments 0 reactions 0 assignees View on GitHub
Gradle kind:bug needs:triage
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

![image](https://github.com/apache/netbeans/assets/11834516/7ed7e077-651a-48a3-93d5-b5015a536b7c)

That is the error

![image](https://github.com/apache/netbeans/assets/11834516/deac966a-2c11-4fbe-92a3-4a1d9c8d21bb)

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

![image](https://github.com/apache/netbeans/assets/11834516/4451a770-cd00-417d-98d8-22593eada9de)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.