netbeans
netbeans copied to clipboard
Getting error "One of Run/Debug/Profile Project actions has been modified and the Run panel cannot be safely edited"
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
- Run Netbeans 15.
- Click on File->New Project.
- Pick the Java with Maven Category.
- Pick the FXML JavaFX Maven Archetype (Gluon) Project.
- Accept the defaults.
- Click on the mavenproject1 Project.
- Click on Run->Clean and Build Project (mavenproject1).
- Excecute a command processor (CMD).
- 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
- 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