[Bug 292242] devel/arduino18: fix build with jdk11+

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 07 Jan 2026 15:36:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292242

            Bug ID: 292242
           Summary: devel/arduino18: fix build with jdk11+
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kevans@freebsd.org
          Reporter: ronald@FreeBSD.org
          Assignee: kevans@freebsd.org
             Flags: maintainer-feedback?(kevans@freebsd.org)

Created attachment 266898
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266898&action=edit
git diff to fix build with any jdk

Java 8 had a jre/lib/ext directory [1] which does not exist anymore.
Put the jssc-*.jar in JAVALIBDIR and embed it in arduino18 so we are sure it is
properly on the classpath.

This allows building with jdk21.

[1] https://openjdk.org/jeps/220#Removed:-The-extension-mechanism

NB: I have a ports commit bit. If you allow the patch I can commit it.

-- 
You are receiving this mail because:
You are the assignee for the bug.