Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7470

openjdk-17 is not recognized as general Java version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit Master Branch
    • Yes

      Trying to run PaperMC 1.20.1 server on Termux.

      Can not start due to openjdk-17 not being recognized as general Java version.

       

      Issue cause by:

      Commit #1191: Do not start on pre-release Java 17

      Lars Baum authored and md_5 committed 863dacb7a00

      Commited on 03 Jun 2023

      Commit hash:

      863dacb7a00f2d5d641a93951885620cbb7eb36d

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/863dacb7a00f2d5d641a93951885620cbb7eb36d#src/main/java/org/bukkit/craftbukkit/Main.java

       

      src/main/java/org/bukkit/craftbukkit/Main.java
      String javaVersionName = System.getProperty("java.version");// J2SE SDK/JRE Version String Naming Conventionboolean isPreRelease = javaVersionName.contains("-");if (isPreRelease && javaVersion == 61.0)

      { System.err.println("Unsupported Java detected (" + javaVersionName + "). You are running an outdated, pre-release version. Only general availability versions of Java are supported. Please update your Java version."); return; }

       

      openjdk 17-internal 2021-09-14 is a fully featured, fully functioning version of openjdk 17.

       

      Even though the openjdk version is named as "17-internal", with the character "-" in the version name does not mean that it is a pre-release version of Java and that CraftBukkit can not run with that OpenJDK verion.

      Please fix this so that openjdk 17-internal works with CraftBukkit without issue.

      {{}}

      Additional information:

      https://github.com/termux/termux-packages/issues/16978

       

       

            Unassigned Unassigned
            Liono123 Ariel Rico
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: