Linux Distro Java Bugs - Debian, Ubuntu, Mint, etc

Discussion in 'News and Announcements' started by md_5, Nov 2, 2018.

Thread Status:
Not open for further replies.
  1. md_5

    Administrator Developer

    Update: Thu 8 Nov 2018 - BuildTools #81 and above will now apply a workaround for this issue and the fixes below are unnecessary if you are using this version.

    Hi Everyone,

    Recently these Linux distributions (and potentially others) published a bugged version of Java, which causes incompatibility with BuildTools (as well as many other Java programs).

    If you see the error "Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter", you are affected by this bug.

    You may read more about this bug in the following locations:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925
    https://stackoverflow.com/a/53016532/1586404

    Until it is fixed there are several options you may wish to investigate:
    • Downgrade your distro version of Java
    • Install Java from Oracle rather than your distro
    • Add the following to the start of your BuildTools command:
      _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true
    • Put the following in your .m2/settings.xml file (may need to be created)
      Code (Text):
      <profiles>
              <profile>
                 <id>SUREFIRE-1588</id>
                 <activation>
                     <activeByDefault>true</activeByDefault>
                 </activation>
                 <properties>
                     <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
                 </properties>
              </profile>
          </profiles>
    • Wait for the bug to be fixed.
    • Switch to Gentoo.
    If the issue persists we may be required to update BuildTools to perform one or more of these steps automatically, however it is our hope that the issue will be addressed promptly.

    Please direct any queries to the 1.13.2 discussion thread, or general forums:
    https://www.spigotmc.org/threads/344189/
     
    #1 md_5, Nov 2, 2018
    Last edited: Nov 9, 2018
    • Informative x 17
    • Like x 12
    • Funny x 2
    • Winner x 2
    • Friendly x 2
    • Agree x 1
    • Useful x 1
    • Creative x 1
Thread Status:
Not open for further replies.

Share This Page