Uploaded image for project: 'BuildTools'
  1. BuildTools
  2. BUILDTOOLS-446

Debian: From openjdk-9 upwards the default keystore type changed from 'jks' to 'pkcs12'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • Debian Stretch 9.8 server
      openjdk-11-jre-headless
      spigot-1.13.2.jar
      craftbukkit-1.13.2.jar

    • 1.13.2
    • Yes

      Issue: Cannot successfully run BuildTools.jar on Debian Stretch server due to "the default keystore type changed from 'jks' to 'pkcs12'".  See simple solution below (e.g. Please add export line to the guide:  https://www.spigotmc.org/wiki/buildtools/#linux

      To get BuildTools.jar to run successfully;

      $ git config --global --unset core.autocrlf
      $ export _JAVA_OPTIONS="-Djavax.net.ssl.trustStorePassword=changeit"
      $ java -jar BuildTools.jar

      The solution above was based on information from;
      https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty
      https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1771363

      Error message I received without the above export statement;

      --------------------------
      $ java -jar BuildTools.jar
      Loading BuildTools version: git-BuildTools-6fc608d-96 (#96)
      Java Version: Java 11
      git version 2.11.0
      Git name not set, setting it to default value.
      Git email not set, setting it to default value.
      Starting clone of https://hub.spigotmc.org/stash/scm/spigot/bukkit.git to Bukkit
      Exception in thread "main" org.eclipse.jgit.api.errors.TransportException: https://hub.spigotmc.org/stash/scm/spigot/bukkit.git: cannot open git-upload-pack
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:135)

      --------------------------

            Unassigned Unassigned
            M.C. George Kirkham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: