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

Cannot run and debug Maven projects with OpenJDK 13.0.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 11.1
    • 11.2
    • None
    • None
    • Windows 10 64-bit, OpenJDK 13.0.1

    Description

      1/ Edit the file C:\Program Files\NetBeans-11.1\netbeans\etc\netbeans.conf so that Netbeans uses OpenJDK 13.0.1, available at https://jdk.java.net/13/

      2/ Open the attached Maven project (a very simple OpenJFX project)

      3/ Try to build or clean/build the project

      Result: the build output window shows only 2 lines and the build fails.

      cd C:\Users\Xiny\Documents\NetBeansProjects\Negatron; "JAVA_HOME=C:
      Program Files\\Java
      jdk-13.0.1" cmd /c "\"\"C:
      Program Files\\NetBeans-11.1\\netbeans\\java\\maven\\bin\\mvn.cmd\" -Dmaven.ext.class.path=\"C:
      Program Files\\NetBeans-11.1\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 install\""

      Cannot run program "cmd" (in directory "C:\Users\Xiny\Documents\NetBeansProjects\Negatron"): Malformed argument has embedded quote: "C:\Program Files\NetBeans-11.1\netbeans\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program Files\NetBeans-11.1\netbeans\java\maven-nblib\netbeans-eventspy.jar" -Dfile.encoding=UTF-8 install

       Remark: this error only happens with OpenJDK 13.0.1 while everything runs fine with OpenJDK 13.

       

      Attachments

        1. Negatron.zip
          7 kB
          xinyingho

        Activity

          People

            Unassigned Unassigned
            xinyingho xinyingho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: