Uploaded image for project: 'Apache NetBeans Infra'
  1. Apache NetBeans Infra
  2. NETBEANSINFRA-14

Cannot create Installer for Netbeans RCP Application using JDK 11

    XMLWordPrintableJSON

Details

    Description

      Setup:

      Netbeans version 11 - 11.1 VC-2

      JDK 11 (latest from AdoptOpenJDK)

       

      1. Create a Netbeans Platform based Application with Maven.

      2. Choose Netbeans Platform RELEASE110

      After Project creation set Source/Binary format to Java 11 (either via Project Properties or directly in pom.xml)

      3. Build all Modules: All Modules and The Project Application compile cleanly with JDK11

      4. Execute the maven goal nbm build installers maven failes with the following exception:

      error: Source option 5 is no longer supported. Use 6 or later.
      error: Target option 1.5 is no longer supported. Use 1.6 or later.

      followed by a BUILD FAILURE and a stack trace from maven.

       

      I don't know if this is a bug in a background ant task or from the maven-nbm-plugin or the ide-itself.

      A current work around ist to build all modules wth java 11 (and therefore JDK11) and only use JDK 8 with source/target support of Java-8 for the actual Application module. With this setup All modules build and can use java 11 features and the Application installers can still be generated. It would be nice if this would also be possible using JDK-11 so one does not need to have several jdk installed.

       

      Kind regards,

      Frederic Simons

       
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Frederic Simons Frederic Simons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h