Getting error "One of Run/Debug/Profile Project actions has been modified and the Run panel cannot be safely edited"
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 15
### What happened
I am running the FXML JavaFX Maven Archetype (Gluon) example project. It runs successfully under Netbeans. But when I do a Clean and Build on the project and run: java -jar mavenproject1-1.0-SNAPSHOT.jar I get the error "no main manifest attribute, in mavenproject1-1.0-SNAPSHOT.jar".
If I look at the mavenproject1 properties under the Run Category this error is displayed: "One of Run/Debug/Profile Project actions has been modified and the Run panel cannot be safely edited".
### How to reproduce
1. Run Netbeans 15.
2. Click on File->New Project.
3. Pick the Java with Maven Category.
4. Pick the FXML JavaFX Maven Archetype (Gluon) Project.
5. Accept the defaults.
6. Click on the mavenproject1 Project.
7. Click on Run->Clean and Build Project (mavenproject1).
8. Excecute a command processor (CMD).
9. cd to path that is displayed from the Output - Build (mavenproject1) window.
For example C:\Users\Owner\.m2\repository\com\mycompany\mavenproject1\1.0-SNAPSHOT
10. Run java -jar mavenproject1-1.0-SNAPSHOT.jar
It displays the error "no main manifest attribute, in mavenproject1-1.0-SNAPSHOT.jar.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows v10 with all patches installed.
### JDK
JDK 15
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
This problem occurs every time I try to run the jar file.
### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
Contributor guide
Research direction
Start by reproducing the FXML JavaFX Maven Archetype project from the listed steps, then inspect the generated project and the JAR manifest after Clean and Build. Done means the generated JAR can be launched with java -jar and the NetBeans Run panel no longer reports that its actions were modified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100