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

nb-javac error on Java 1.8 project with profile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.3
    • None
    • java - Compiler
    • None
    • Netbeans 12.3 for Windows. nb-javac 15.0.0.2.

    Description

      When working on a Java 8 (1.8) project, the following error will occur if any profile other than Full JRE is defined:

      Caused: java.lang.IllegalStateException: error: option -profile not allowed with target 15

      This is easily reproduceable:

      Create a Java 8 project and set the profile to something other than Full JRE. Issue occurs regardless of JDK being used to run Netbeans (JDK 8, 11, and 15 tested). JDK 1.8 is used for library and JDK 8 is source/binary format.

      Attachments

        1. errorlogxml.txt
          2.37 MB
          Peter Loveall

        Activity

          People

            Unassigned Unassigned
            petesl Peter Loveall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: