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

Ant project not runnable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 11.2
    • Fix Version/s: None
    • Component/s: projects - Ant Project
    • Labels:
      None
    • Environment:

      NetBeans-dev-netbeans-linux-1247-on-20190915-release
      Windows 10
      OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
      OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)

      Description

      Plain Ant based Java Application is not runnable when using Java 11. It does work with Java 8. No error message, no log, total silence.

      Seems to be a regression introduced with one of the latest changes between 11.1 and 11.2.

       

      Steps to reproduce:

      1. Unpack plain zip distribution for version 11.1+ (actually NetBeans-dev-netbeans-linux-1250-on-20190916-release.zip)
        • delete any previous profile files
      2. Configure Java 11 as runtime environment in "etc/netbeans.conf"
        • netbeans_jdkhome= <Point ot local JDK 11>
      3. Create new project "Java with Ant / Java Application"
      4. Try to run generated Class "JavaApplication<X>" with generated main method
      5. Nothing in Output window
      6. Add JDK 8 to IDE via Tools/Java Platforms
      7. Switch Java Platform in project properties to JDK 8
      8. Try to run generated Class "JavaApplication<X>" with generated main method
      9. Run in Output visable

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              graben Benjamin Graf
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: