Support for Java 8 was deprecated in 3.0.0: https://archive.apache.org/dist/kafka/3.0.0/RELEASE_NOTES.html Kafka supports Java 11 (since 2.1.0) and Java 17 (since 3.1.0). Kafka should be linked against a JRE (not JDK) - either openjdk11-jre or openjdk17-jre.
(In reply to Yonas Yanfa from comment #0) Hello, thank you for this report. Well, deprecation doesn't mean support drop. Ok, I will update java version requirement to 11+ anyway. As for jre I couldn't find a code in Mk/bsd.java.mk that may be used to refer to jre.
Created attachment 237219 [details] port patch - update net/kafka to v3.3.1 - bump java version requirement to 11+ following upstream - explicitly set java runtime requirement to JRE version (seems has no affect in Mk/bsd.java.mk) - add some stuff to get started with KRaft mode
Committed, Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=91ef273ce62b466b99abfcbcb06922148fbb450d commit 91ef273ce62b466b99abfcbcb06922148fbb450d Author: Pavel Timofeev <timp87@gmail.com> AuthorDate: 2022-10-12 08:30:18 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2022-10-12 11:55:44 +0000 net/kafka: Use Java 11 or 17. Java 8 is deprecated in 3.0.0. PR: 266616 Reported by: yonas.yanfa@gmail.com (maintainer) Approved by: timp87@gmail.com (maintainer) net/kafka/Makefile | 53 ++++++++++------- net/kafka/distinfo | 6 +- net/kafka/files/pkg-message.in (new) | 12 ++++ net/kafka/pkg-plist | 108 ++++++++++++++++++++--------------- 4 files changed, 109 insertions(+), 70 deletions(-)