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

-Xbootclasspath/p is no longer a supported option

    XMLWordPrintableJSON

Details

    • Patch, Important

    Description

      I have upgraded from NetBeans 8.2 and JDK1.8 to Apache NetBeans 11.0 and OpenJDK 11. The Xbootclasspath option is no longer supported bij JDK11 and apparently has to be changed to --patch-module. It is however still used in the ANT build-impl.xml file under endorsed.classpath.path. The problem is that if you change "-Xbootclasspath/p:" to "-patch module java.base=" that NetBeans automatically overwrites it back to "-Xbootclasspath/p" when you change properties of a project. -Xbootclasspath/a and -Xbootclasspath also don't work.

      I also get the following error when running a class even when I changed everything to --patch module:

      -Xbootclasspath/p is no longer a supported option.
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      C:\Users\user1\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:111: The following error occurred while executing this line:
      C:\Users\user1\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:94: Java returned: 1
      BUILD FAILED (total time: 0 seconds)

      Removing the cache folder doesn't help. I am not able anymore to run this class even when I change the Source/Binary format of the project back to JDK1.8. It seems that Apache NetBeans has hardcoded -Xbootclasspath internally?

       

      Attachments

        Activity

          People

            e.s.brinkman@amc.uva.nl Emile Brinkman
            e.s.brinkman@amc.uva.nl Emile Brinkman
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: