Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3758

"Run File" is often disabled after introducing a main() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.1
    • None

    Description

      Often when introducing a new `main` method into an existing class, the "Run File" and "Debug File" menu entries are still disabled and is therefore impossible to execute this `main` method.

      In most cases it is necessary to closes netbeans and clear the netbeans cache to be able to execute it, which is absolutely counterproductive if such a method is only temporarily inserted for testing purposes.

      It may be that this only happens with Maven projects, since all my projects are maven based.

      Please see the attached screenshot that shows the context menu after introducing a new `main` method.

      Attachments

        1. main.png
          19 kB
          Marco Herrn

        Activity

          People

            Unassigned Unassigned
            hupfdule Marco Herrn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: