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

JDK 17 project fails to run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Information Provided
    • 12.5
    • None
    • projects - Maven
    • None

    Description

      1. Run NetBeans with Oracle JDK 17
      2. Create Java Maven Project
      3. Create Main class with main method that prints something
      4. Run project from IDE
      5. NetBeans fails to compile the program with the following output

      Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project myproject: Fatal error compiling: error: invalid target release: 17 -> [Help 1]

      Attachments

        Activity

          People

            Unassigned Unassigned
            vanuatoo Vano Beridze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: