netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Getting error "One of Run/Debug/Profile Project actions has been modified and the Run panel cannot be safely edited"

Open TimHofheins opened this issue 3 years ago • 0 comments

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

TimHofheins avatar Oct 02 '22 01:10 TimHofheins